apxtrib/adminapi/schema/nations.json

35 lines
1015 B
JSON
Raw Normal View History

2023-03-27 05:52:21 +00:00
{
"$schema":"http://json-schema.org/schema#",
2023-06-12 05:27:34 +00:00
"$id":"schema/nations",
2023-03-27 05:52:21 +00:00
"title": "Nation definition",
"description": "A nation from apXtrib world",
"$comment":"see ./lg/nations_lg.json for description in your languange lg",
"type": "object",
"properties": {
"nationId": {
2023-06-02 08:21:01 +00:00
"title":"Unique nation name",
"description":"A unique string that define a nation a-z and 0-9 onlyin a social world",
2023-03-27 05:52:21 +00:00
"type": "string",
"pattern":"^[a-z0-9]*$"
},
"dtcreate": {
2023-06-02 08:21:01 +00:00
"title":"Creation date",
"description":"Nation date of creation",
2023-03-27 05:52:21 +00:00
"type": "string",
2023-06-28 13:23:17 +00:00
"format":"date-time"
2023-03-27 05:52:21 +00:00
},
"contracts":{
2023-06-02 08:21:01 +00:00
"title":"Social contract of the nation",
"description":"A uri of the signed js contract that rules this nation",
2023-03-27 05:52:21 +00:00
"type": "string",
"format":"uri"
}
},
"required": ["nationId", "dtcreate","contracts"],
"additionalProperties":false,
2023-04-13 05:46:35 +00:00
"apxprimarykey":["nationId"],
2023-03-27 05:52:21 +00:00
"apxsearchindex": [
{ "key": "nationId", "value": [] }
]
}