Skip to content

Instantly share code, notes, and snippets.

@eltabo
Created June 19, 2019 12:57
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 eltabo/fc733d6869d96cb26a0654079281b9da to your computer and use it in GitHub Desktop.
Save eltabo/fc733d6869d96cb26a0654079281b9da to your computer and use it in GitHub Desktop.
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/example.json",
"type": "object",
"title": "The Root Schema",
"required": [
"id",
"name",
"price"
],
"properties": {
"id": {
"$id": "/properties/id",
"type": "integer",
"title": "The Id Schema",
"default": 0,
"examples": [
1
]
},
"name": {
"$id": "/properties/name",
"type": "string",
"title": "The Name Schema",
"default": "",
"examples": [
"A GREEN DOOR"
],
"pattern": "^([A-Z]*)$"
},
"price": {
"$id": "/properties/price",
"type": "number",
"title": "The Price Schema",
"default": 12,
"examples": [
12
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment