demarches-normaliennes/app/schemas/composition-familiale.json
2021-09-22 12:08:24 +02:00

70 lines
1.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://demarches-simplifiees.fr/composition-familiale.schema.json",
"title": "composition familiale",
"type": "object",
"properties": {
"adresse": {
"type": "object",
"properties": {
"codePostalVille": {
"type": "string"
},
"identite": {
"type": "string"
},
"complementIdentite": {
"type": "string"
},
"numeroRue": {
"type": "string"
},
"pays": {
"type": "string"
},
"complementIdentiteGeo": {
"type": "string"
},
"lieuDit": {
"type": "string"
}
}
},
"allocataires": {
"type": "array",
"items": { "$ref": "#/$defs/person" }
},
"enfants": {
"type": "array",
"items": { "$ref": "#/$defs/person" }
},
"quotientFamilial": {
"type": "integer"
},
"annee": {
"type": "integer"
},
"mois": {
"type": "integer",
"minimum": 1,
"maximum": 12
}
},
"$defs": {
"person": {
"type": "object",
"properties": {
"nomPrenom": {
"type": "string"
},
"dateDeNaissance": {
"type": "string",
"pattern": "^[0-9]{8}$"
},
"sexe": {
"enum": ["F", "M"]
}
}
}
}
}