Ricardo SIGNES
unread,Sep 4, 2008, 8:46:13 AM9/4/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JSON Schema
If I want to validate a datum that is guaranteed to be a positive (non-
zero) number, how do I do that? I see a way to specify minimum, but
not a way to make the endpoint exclusive of its value.
A practical example would be in a schema defining the returned data
from an RPC random number generator. I'd expect something like:
{
"type": "object",
"properties": {
"usedAlgorithm": { "type": "string" },
"result": { "type": "number", "minimum": 0, "maximum": 1,
"exclusiveMaximum": true}
},
}