Created
September 25, 2012 04:14
-
-
Save agenteo/3779950 to your computer and use it in GitHub Desktop.
json-schema grouped specs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"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