Skip to content

Instantly share code, notes, and snippets.

@agenteo
Created September 25, 2012 04:06
Show Gist options
  • Save agenteo/3779919 to your computer and use it in GitHub Desktop.
Save agenteo/3779919 to your computer and use it in GitHub Desktop.
json-schema specs
[{
"description":"It should fail when number is greater then maximum.",
"schema":{
"type":"number",
"maximum":2012
},
"data":{
"dob": 2013
},
"valid": false
},
{
"description":"It should pass when number is less then maximum.",
"schema":{
"type":"number",
"maximum":2012
},
"data":{
"dob": 1981
},
"valid": true
},
{
"description":"It should pass when number is equal to maximum.",
"schema":{
"type":"number",
"maximum":2012
},
"data":{
"dob": 2012
},
"valid": true
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment