1
0
forked from apxtri/apxtrib
apxtrib/adminapi/schema/nations.json

35 lines
1015 B
JSON
Raw Normal View History

2023-03-27 07:52:21 +02:00
{
"$schema":"http://json-schema.org/schema#",
2023-06-12 07:27:34 +02:00
"$id":"schema/nations",
2023-03-27 07:52:21 +02: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 10:21:01 +02: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 07:52:21 +02:00
"type": "string",
"pattern":"^[a-z0-9]*$"
},
"dtcreate": {
2023-06-02 10:21:01 +02:00
"title":"Creation date",
"description":"Nation date of creation",
2023-03-27 07:52:21 +02:00
"type": "string",
2023-06-28 15:23:17 +02:00
"format":"date-time"
2023-03-27 07:52:21 +02:00
},
"contracts":{
2023-06-02 10:21:01 +02:00
"title":"Social contract of the nation",
"description":"A uri of the signed js contract that rules this nation",
2023-03-27 07:52:21 +02:00
"type": "string",
"format":"uri"
}
},
"required": ["nationId", "dtcreate","contracts"],
"additionalProperties":false,
2023-04-13 07:46:35 +02:00
"apxprimarykey":["nationId"],
2023-03-27 07:52:21 +02:00
"apxsearchindex": [
{ "key": "nationId", "value": [] }
]
}