Created
July 12, 2019 19:10
-
-
Save temp3l/d8997aedd9df0fab20712d4094c2fa3b to your computer and use it in GitHub Desktop.
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
{ | |
"definitions": {}, | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$id": "http://example.com/root.json", | |
"type": "object", | |
"title": "The Root Schema", | |
"required": [ | |
"foo", | |
"nums", | |
"strings" | |
], | |
"properties": { | |
"foo": { | |
"$id": "#/properties/foo", | |
"type": "string", | |
"title": "The Foo Schema", | |
"default": "", | |
"examples": [ | |
"bar" | |
], | |
"pattern": "^(.*)$" | |
}, | |
"nums": { | |
"$id": "#/properties/nums", | |
"type": "array", | |
"title": "The Nums Schema", | |
"items": { | |
"$id": "#/properties/nums/items", | |
"type": "integer", | |
"title": "The Items Schema", | |
"default": 0, | |
"examples": [ | |
1, | |
2, | |
3 | |
] | |
} | |
}, | |
"strings": { | |
"$id": "#/properties/strings", | |
"type": "array", | |
"title": "The Strings Schema", | |
"items": { | |
"$id": "#/properties/strings/items", | |
"type": "string", | |
"title": "The Items Schema", | |
"default": "", | |
"examples": [ | |
"a", | |
"b", | |
"c" | |
], | |
"pattern": "^(.*)$" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment