Setup basic room type and room schema
This commit is contained in:
22
roomtype.schema.json
Normal file
22
roomtype.schema.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.azur.webhop.me/Next-Station/NS-Schemas/raw/branch/master/roomstyle.schema.json",
|
||||
"title": "Room Type",
|
||||
"description": "A room type is a set of rooms that share a common style. For example, a set of corridors is a room type.",
|
||||
"properties": {
|
||||
"rooms": {
|
||||
"type": "array",
|
||||
"description": "(direct) Names to rooms declarations.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"weight": {
|
||||
"type": "number",
|
||||
"default": 1,
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"required": ["rooms", "weight"]
|
||||
}
|
||||
Reference in New Issue
Block a user