content, 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:
Julia Lange 2025-05-07 16:20:28 -07:00
parent 60262fed0c
commit 0beee2c8d0
Signed by: Julia
SSH key fingerprint: SHA256:50XUMcOFYPUs9/1j7p9SPnwASZ7QnxXm7THF7HkbqzQ
4 changed files with 83 additions and 72 deletions

View file

@ -1,27 +0,0 @@
{
"lexicon": 1,
"id": "my.spoor.content.title",
"defs": {
"main": {
"type": "object",
"properties": {
"language": {
"type": "string",
"format": "nsid",
"knownValues": [
"my.spoor.content.title#romanization",
"my.spoor.content.title#english",
"my.spoor.content.title#native"
]
},
"value": { "type": "string", "minLength": 1 }
}
},
"romanization": { "type": "token",
"description": "Romanization of the native title" },
"english": { "type": "token",
"description": "English translation or title" },
"native": { "type": "token",
"description": "Native title" }
}
}