Skip to content

Instantly share code, notes, and snippets.

@charanraj-golla
Last active October 23, 2020 09:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charanraj-golla/82bd2e51733cec512aab8f2d1e2713e0 to your computer and use it in GitHub Desktop.
Save charanraj-golla/82bd2e51733cec512aab8f2d1e2713e0 to your computer and use it in GitHub Desktop.
{
"$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