Skip to content

Instantly share code, notes, and snippets.

@tristancamejo
Last active April 4, 2022 07:09
Show Gist options
  • Save tristancamejo/0dc4c12aeb4f175bb9a7311a690b6918 to your computer and use it in GitHub Desktop.
Save tristancamejo/0dc4c12aeb4f175bb9a7311a690b6918 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/Welcome6",
"definitions": {
"Welcome6": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"artist": {
"type": "string"
},
"album-cover": {
"type": "string"
},
"songs": {
"type": "array",
"items": {
"$ref": "#/definitions/Song"
}
}
},
"required": [
"artist",
"name",
"songs"
],
"title": "Welcome6"
},
"Song": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"ISRC": {
"type": "string"
},
"artist": {
"type": "string"
},
"file": {
"type": "string"
}
},
"required": [
"ISRC",
"artist",
"file",
"name"
],
"title": "Song"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment