Lexicons, use primary types, move title to defs
So I sort of used "object" instead of "record" because I thought key was an option type ^_^ So I had to fix that. Also moves title to defs because it is not supposed to be a record
This commit is contained in:
parent
49e7340c19
commit
f8ff1d63ce
4 changed files with 83 additions and 72 deletions
|
|
@ -3,26 +3,30 @@
|
|||
"id": "my.spoor.content.external",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "object",
|
||||
"required": [ "source", "queryable" ],
|
||||
"type": "record",
|
||||
"key": "nsid",
|
||||
"properties": {
|
||||
"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"
|
||||
},
|
||||
"overrides": {
|
||||
"type": "object",
|
||||
"description": "User defined overrides for the returned content",
|
||||
"properties": {}
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": [ "source", "queryable" ],
|
||||
"properties": {
|
||||
"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": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue