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

38 lines
1 KiB
JSON

{
"title": "Person",
"description": "Describes a set of persons",
"type": "object",
"properties": {
"persons": {
"description": "A list of persons",
"type": "array",
"items": {
"description": "A person object",
"type": "object",
"properties": {
"id": {
"description": "An integer representing the function tag id",
"type": "integer"
},
"name": {
"description": "The name associated with this person",
"type": "string"
},
"groups": {
"description": "A list of groups attributed to this person",
"type": "array",
"items": {
"$ref": "group.schema.json#/properties/groups/items"
}
}
},
"required": ["id", "name", "groups"],
"additionalProperties": false
}
},
"person_update": {
"$ref": "#/properties/persons/items"
}
},
"required": ["persons", "person_update"]
}