Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This is schema for sample book json.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"author": {
"type": "string"
},
"title": {
"type": "string"
},
"price": {
"type": "number",
"minimum": 0,
"exclusiveMinimum": true
},
"characters": {
"type": "array",
"items": {
"type": "string"
}
},
"adultBook": {
"type": "boolean"
},
"publishedOn": {
"type": "string",
"format": "date-time"
},
"category": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"author",
"title",
"price"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment