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

35 lines
1.0 KiB
JSON
Raw Normal View History

2023-03-27 05:52:21 +00:00
{
"$schema":"http://json-schema.org/schema#",
"$id":"nationchains/socialworld/objects/schema/nations",
"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",
"format":"datetime"
},
"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": [] }
]
}