Skip to content

Instantly share code, notes, and snippets.

@charanraj-golla charanraj-golla/common-schema.json Secret

Last active Jul 28, 2019
Embed
What would you like to do?
{
"$id": "http://example.com/common",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"mediaType": {
"type": "object",
"properties": {
"id" : { "type": "number" },
"name" : { "type": "string" }},
"additionalProperties" : false,
"required" : [ "id", "name" ]
},
"media": {
"type": "object",
"properties": {
"alternateName" : { "type": [ "string", "null" ] },
"type" : { "type": "string" },
"url" : { "type": "string", "format": "uri" }
},
"additionalProperties" : false,
"required" : [ "alternateName","type","url" ]
}
}
}
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.