Skip to content

Instantly share code, notes, and snippets.

@agenteo
Created September 25, 2012 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agenteo/3779950 to your computer and use it in GitHub Desktop.
Save agenteo/3779950 to your computer and use it in GitHub Desktop.
json-schema grouped specs
[
{
"description": "integer type",
"schema": {"type": "number", "maximum": 2012},
"tests": [
{
"description": "It should pass when number is less then maximum",
"data": 1981,
"valid": true
},
{
"description": "It should pass when number is equal to maximum",
"data": 2012,
"valid": true
},
{
"description": "It should fail when number is greater then maximum",
"data": 2013,
"valid": false
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment