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,34 +3,37 @@
|
|||
"id": "my.spoor.content.media",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "object",
|
||||
"type": "record",
|
||||
"key": "nsid",
|
||||
"required": [ "titles", "durationData", "lastUpdated" ],
|
||||
"properties": {
|
||||
"titles": {
|
||||
"type": "array",
|
||||
"minLength": 1,
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "my.spoor.content.title"
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": [ "titles", "lastUpdated" ],
|
||||
"properties": {
|
||||
"titles": {
|
||||
"type": "array",
|
||||
"minLength": 1,
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "my.spoor.content.defs#title"
|
||||
}
|
||||
},
|
||||
"durationData": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"my.spoor.content.media#television",
|
||||
"my.spoor.content.media#book"
|
||||
]
|
||||
},
|
||||
"posterImage": {
|
||||
"type": "blob",
|
||||
"accept": ["image/png", "image/jpeg"],
|
||||
"maxSize": 1000000
|
||||
},
|
||||
"lastUpdated": {
|
||||
"type": "string",
|
||||
"format": "datetime",
|
||||
"description": "Client-declared timestamp for when this activity was last updated"
|
||||
}
|
||||
},
|
||||
"durationData": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"my.spoor.content.media#television",
|
||||
"my.spoor.content.media#book"
|
||||
]
|
||||
},
|
||||
"posterImage": {
|
||||
"type": "blob",
|
||||
"accept": ["image/png", "image/jpeg"],
|
||||
"maxSize": 1000000
|
||||
},
|
||||
"lastUpdated": {
|
||||
"type": "string",
|
||||
"format": "datetime",
|
||||
"description": "Client-declared timestamp for when this activity was last updated"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue