Skip to content

Instantly share code, notes, and snippets.

@temp3l
Created July 12, 2019 19:10
Show Gist options
  • Save temp3l/d8997aedd9df0fab20712d4094c2fa3b to your computer and use it in GitHub Desktop.
Save temp3l/d8997aedd9df0fab20712d4094c2fa3b to your computer and use it in GitHub Desktop.
{
"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