Created
April 15, 2014 18:47
-
-
Save abemusic/10758293 to your computer and use it in GitHub Desktop.
Blueprint schema validation
This file contains hidden or 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
BLUEPRINT_SCHEMA = { | |
'$schema': 'http://json-schema.org/draft-04/schema#', | |
'title': 'Blueprint', | |
'description': '', | |
'type': 'object', | |
'required': ['title'], | |
'properties': { | |
'title': { | |
'type': 'string', | |
'minLength': 5 | |
}, | |
'description': { | |
'type': 'string', | |
'minLength': 10, | |
}, | |
'hosts': { | |
'type': 'array', | |
'minItems': 1 | |
} | |
} | |
} | |
BLUEPRINT = { | |
'title': 'Foo', | |
'description': '' | |
} |
Author
abemusic
commented
Apr 15, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment