lexicons/lexicons/my/spoor/content/external.json
Julia Lange d7b4ede16e
content, add optional title to external
I really like this change. I think it'll make records way easier to
understand in the repo, and more useful if the external site goes down.

Also allows shortcut querying if you don't need more data than the title
2025-05-08 14:59:50 -07:00

42 lines
1.1 KiB
JSON

{
"lexicon": 1,
"id": "my.spoor.content.external",
"defs": {
"main": {
"type": "record",
"key": "nsid",
"record": {
"type": "object",
"required": [ "source", "queryable" ],
"properties": {
"titles": {
"type": "array",
"minLength": 1,
"items": {
"type": "ref",
"ref": "my.spoor.content.defs#title"
}
},
"source": {
"type": "string",
"description": "An nsid for a specific data source. The domain authority governs how to process the queryable",
"format": "nsid",
"knownValues": [
"my.spoor.content.external#tvdb"
]
},
"queryable": {
"type": "union",
"description": "All the data needed to query the content from the source",
"refs": []
},
"overrides": {
"type": "union",
"description": "User defined overrides for the returned content",
"refs": []
}
}
}
}
}
}