lexicons/my/spoor/content/external.json
Julia Lange 42f93c610a
Content, collapse source/queryable, add tvdbv4
Removed the source field, and made queryable be a union where the type
will reveal how to query, and the data to query will be contained
within. (This is much smarter)...

Changed overrides to be a simple empty object (which should be fine in
the spec). This reflects what it should actually be.

Finally explicitly added the tvdb api v4 option.
2025-05-08 15:25:20 -07:00

43 lines
994 B
JSON

{
"lexicon": 1,
"id": "my.spoor.content.external",
"defs": {
"main": {
"type": "record",
"key": "nsid",
"record": {
"type": "object",
"required": [ "queryable" ],
"properties": {
"queryable": {
"type": "union",
"description": "All the data needed to query the content from the source",
"refs": [
"#tvdbv4"
]
},
"titles": {
"type": "array",
"minLength": 1,
"items": {
"type": "ref",
"ref": "my.spoor.content.title"
}
},
"overrides": {
"type": "object",
"description": "User defined overrides for the returned content",
"properties": {}
}
}
}
},
"tvdbv4": {
"type": "object",
"required": [ "id" ],
"properties": {
"id": { "type": "integer" }
}
}
}
}