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

82 lines
2.4 KiB
JSON
Raw Normal View History

{
"title": "Item",
"description": "Describes a list of items",
"type": "object",
"properties": {
"items": {
"description": "A list of items",
"type": "array",
"items": {
"description": "A item object",
"type": "object",
"properties": {
"id": {
"description": "An integer id associated with this item",
"type": "integer"
},
"name": {
"description": "The name associated with this item",
"type": "string"
},
"functions": {
"description": "A list of functions associated with this item",
"type": "array",
"items": {
"$ref": "function.schema.json#/properties/functions/items"
}
},
"flavor_text": {
"description": "Flavor text associated with this item",
"type": "string"
},
"rules_description": {
"description": "A rules description associated with this item",
"type": "string"
},
"physrep_requirements": {
"description": "The physrep requirements associated with this item",
"type": "string"
},
"tags": {
"description": "A list of function tags associated with this item",
"type": "array",
"items": {
"$ref": "functiontag.schema.json#/properties/function_tags/items"
}
},
"customizations": {
"description": "A list of customizations associated with this item",
"type": "array",
"items": {
"$ref": "customization.schema.json#/properties/customizations/items"
}
},
"visibility": {
"description": "A list of groups attributed to this item",
"type": "array",
"items": {
"$ref": "group.schema.json#/properties/groups/items"
}
}
},
"additionalProperties": false,
"required": [
"id",
"name",
"functions",
"flavor_text",
"rules_description",
"physrep_requirements",
"tags",
"customizations",
"visibility"
]
}
},
"item_update": {
"$ref": "#/properties/items/items"
}
},
"required": ["items", "item_update"]
}