Skip to content

Instantly share code, notes, and snippets.

@jturmel
Last active August 17, 2020 20:39
Show Gist options
  • Select an option

  • Save jturmel/1900189efce4e333b6a0a5e45dfc7886 to your computer and use it in GitHub Desktop.

Select an option

Save jturmel/1900189efce4e333b6a0a5e45dfc7886 to your computer and use it in GitHub Desktop.
{
"definitions": {
"accoladeBadge": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"parent": {
"#ref": "#/definitions/badge"
}
},
"required": ["id", "parent"]
},
"badge": {
"type": ["object", "null"],
"properties": {
"id": {
"type": "string"
},
"parent": {
"#ref": "#/definitions/badge"
}
},
"required": ["id", "parent"]
},
"accolade": {
"type": "object",
"properties": {
"prop1": {
"type": "string"
},
"prop2": {
"type": "string"
},
"badge": {
"#ref": "#/definitions/accoladeBadge"
}
},
"required": ["prop1", "prop2", "badge"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment