Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"$id": "http://example.com/quiz",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"sponsor": {
"properties": {
"id" : { "type": "integer" },
"description": { "type": [ "string", "null" ] },
"url" : { "type": [ "string", "null" ], "format": "uri" },
"media" : { "type": [ "array", "null" ],
"items": { "$ref": "http://example.com/common#/definitions/media" } }
},
"additionalProperties" : false,
"required" : [ "name", "description", "url", "media" ]
},
"campaign": {
"type": "object",
"properties": {
"id" : { "type": "integer" },
"campaignName" : { "type": "string" },
"sponsor" : { "type": [ "object", "null" ],
"default": null,
"$ref": "#/definitions/sponsor"
},
"media" : { "type": [ "array", "null" ],
"items": { "$ref": "http://example.com/common#/definitions/media" } }
},
"additionalProperties" : false,
"required" : [ "id", "campaignName", "endDate", "sponsor", "media"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.