Skip to content

Instantly share code, notes, and snippets.

@fbaligand
Created October 15, 2020 21:27
Show Gist options
  • Save fbaligand/88fab9821713f91ec13a37be4f7b6e8a to your computer and use it in GitHub Desktop.
Save fbaligand/88fab9821713f91ec13a37be4f7b6e8a to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"my-object": {
"type": "object",
"properties": {
"prop1": {
"type": "string",
"default": "prop1"
}
}
},
"my-array": {
"type": "array",
"items": {
"type": "object",
"properties": {
"prop2": {
"type": "string",
"default": "prop2"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment