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

46 lines
1.2 KiB
JSON
Raw Normal View History

{
"title": "Role",
"description": "Describes a list of roles",
"type": "object",
"properties": {
"roles": {
"description": "A list of roles",
"type": "array",
"items": {
"description": "A role object",
"type": "object",
"properties": {
"id": {
"description": "An integer id associated with this item tag",
"type": "integer"
},
"name": {
"description": "A name associated with this item tag",
"type": "string"
},
"tiers": {
"description": "A list of tiers associated with this role",
"type": "array",
"items": {
"$ref": "./tier.schema.json#/properties/tiers/items"
}
},
"visibility": {
"description": "A list of groups associated with this role",
"type": "array",
"items": {
"$ref": "./group.schema.json#/properties/groups/items"
}
}
},
"additionalProperties": false,
"required": ["id", "name", "tiers", "visibility"]
}
},
"role_update": {
"$ref": "#/properties/roles/items"
}
},
"required": ["roles", "role_update"]
}