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
31
lexicons/my/spoor/content/defs.json
Normal file
31
lexicons/my/spoor/content/defs.json
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"lexicon": 1,
|
||||
"id": "my.spoor.content.defs",
|
||||
"defs": {
|
||||
"title": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"translationType": {
|
||||
"type": "string",
|
||||
"format": "nsid",
|
||||
"knownValues": [
|
||||
"my.spoor.content.defs#titleHomophonic",
|
||||
"my.spoor.content.defs#titleNative",
|
||||
"my.spoor.content.defs#titleTranslation"
|
||||
]
|
||||
},
|
||||
"lang": {
|
||||
"type": "string",
|
||||
"format": "language"
|
||||
},
|
||||
"value": { "type": "string", "minLength": 1 }
|
||||
}
|
||||
},
|
||||
"titleHomophonic": { "type": "token",
|
||||
"description": "A phonetic transcription of the native title such that when read it will sound like the native title." },
|
||||
"titleNative": { "type": "token",
|
||||
"description": "The title in its native script" },
|
||||
"titleTranslation": { "type": "token",
|
||||
"description": "A translation of the title" }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue