apxtrib/adminapi/www/adminapx/schema/towns.json

38 lines
970 B
JSON
Raw Normal View History

2023-03-27 05:52:21 +00:00
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
2023-05-31 13:19:21 +00:00
"$id": "schema/towns",
2023-03-27 05:52:21 +00:00
"title": "Town",
"description": "A town belonging to a nation from apXtrib world",
"type": "object",
"properties": {
"townId": {
"type": "string",
2023-05-31 13:19:21 +00:00
"pattern": "^[a-z0-9]*$"
2023-03-27 05:52:21 +00:00
},
"nationId": {
2023-05-31 13:19:21 +00:00
"type": "string",
"$apxenumkey": "socialworld/objects/nations/searchindex/nations_uuid_uuid.json"
},
"mayorId": {
2023-03-27 05:52:21 +00:00
"type": "string",
"$apxenumkey": "socialworld/objects/nations/searchindex/nations_uuid_uuid.json"
},
"status": {
"default": "active",
"type": "string",
2023-05-31 13:19:21 +00:00
"enum":["chain","unchain","tochain"]
2023-03-27 05:52:21 +00:00
}
},
2023-05-31 13:19:21 +00:00
"dns": {
"type": "array"
2023-03-27 05:52:21 +00:00
}
},
2023-05-31 13:19:21 +00:00
"required": ["townId", "status", "nationId", "dns"],
2023-03-27 05:52:21 +00:00
"apxprimarykey": "townId",
"apxsearchindex": [
{ "key": "status", "value": "townId" },
{ "key": "nationId", "value": "townId" },
{ "key": "townId", "value": [] }
]
}