cpularp-manager-api/test/fixtures/schemas/character.schema.json

66 lines
1.9 KiB
JSON

{
"title": "Character",
"description": "Describes a list of characters",
"type": "object",
"properties": {
"characters": {
"description": "A list of characters",
"type": "array",
"items": {
"description": "A character object",
"type": "object",
"properties": {
"id": {
"description": "An integer id associated with this character",
"type": "integer"
},
"name": {
"description": "A name associated with this character",
"type": "string"
},
"owners": {
"description": "A list of persons that own this character",
"type": "array",
"items": {
"$ref": "./person.schema.json#/properties/persons/items"
}
},
"roles": {
"description": "A list of roles associated with this character",
"type": "array",
"items": {
"$ref": "./role.schema.json#/properties/roles/items"
}
},
"function_sets": {
"description": "A list of function sets associated with this character",
"type": "array",
"items": {
"$ref": "./functionset.schema.json#/properties/function_sets/items"
}
},
"inventory": {
"description": "The inventory associated with this character (a list of inventory slot objects)",
"type": "array",
"items": {
"$ref": "./inventoryslot.schema.json#/properties/inventory_slots/items"
}
}
},
"additionalProperties": false,
"required": [
"id",
"name",
"owners",
"roles",
"function_sets",
"inventory"
]
}
},
"character_update": {
"$ref": "#/properties/characters/items"
}
},
"required": ["characters", "character_update"]
}