add relationship type enum

This commit is contained in:
2025-03-30 21:58:41 +02:00
parent 723c679ad0
commit 5ea66fdd78

View File

@@ -89,6 +89,10 @@
"person": {
"$ref": "#/components/schemas/PersonRegistration"
},
"type":{
"type": "string",
"enum": ["child", "parent", "spouse", "sibling"]
},
"relationship": {
"$ref": "#/components/schemas/FamilyRelationship"
}
@@ -165,6 +169,14 @@
"schema": {
"type": "integer"
}
},
{
"name": "X-User-Name",
"in": "header",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
@@ -859,6 +871,10 @@
"id2": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["child", "parent", "spouse", "sibling"]
},
"relationship": {
"$ref": "#/components/schemas/FamilyRelationship"
}