247 lines
6.5 KiB
JSON
247 lines
6.5 KiB
JSON
[
|
|
{
|
|
"fields" : {
|
|
"caption_template" : "{prenoms} {nom_de_naissance}",
|
|
"schema" : {
|
|
"title" : "individu",
|
|
"properties" : {
|
|
"telephones" : {
|
|
"type" : "array",
|
|
"items" : {
|
|
"type" : "object",
|
|
"properties" : {
|
|
"numero" : {
|
|
"pattern" : "^[0-9 .-]*$",
|
|
"type" : "string"
|
|
},
|
|
"type" : {
|
|
"enum" : [
|
|
"maison",
|
|
"mobile",
|
|
"pro",
|
|
"autre"
|
|
],
|
|
"type" : "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"nom_" : {
|
|
"type" : "string"
|
|
},
|
|
"email" : {
|
|
"type" : "string",
|
|
"format" : "email"
|
|
},
|
|
"prenoms" : {
|
|
"type" : "string"
|
|
},
|
|
"nom_d_usage" : {
|
|
"type" : "string"
|
|
},
|
|
"date_de_naissance" : {
|
|
"type" : "string",
|
|
"format" : "date-time"
|
|
},
|
|
"statut_legal" : {
|
|
"enum" : [
|
|
"majeur",
|
|
"mineur"
|
|
],
|
|
"type" : "string"
|
|
},
|
|
"genre" : {
|
|
"enum" : [
|
|
"femme",
|
|
"homme",
|
|
"autre"
|
|
],
|
|
"type" : "string"
|
|
},
|
|
"cles_de_federation" : {
|
|
"type" : "object",
|
|
"additionalProperties" : {
|
|
"type" : "object",
|
|
"properties" : {
|
|
"id" : {
|
|
"oneOf" : [
|
|
{
|
|
"type" : "string"
|
|
},
|
|
{
|
|
"type" : "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"nom_de_naissance" : {
|
|
"type" : "string"
|
|
},
|
|
"date_de_deces" : {
|
|
"type" : "string",
|
|
"format" : "date-time"
|
|
}
|
|
},
|
|
"required" : [
|
|
"prenoms",
|
|
"nom_de_naissance",
|
|
"date_de_naissance",
|
|
"genre"
|
|
],
|
|
"type" : "object"
|
|
},
|
|
"slug" : "individu",
|
|
"name" : "Individu"
|
|
},
|
|
"model" : "zoo_meta.entityschema"
|
|
},
|
|
{
|
|
"model" : "zoo_meta.entityschema",
|
|
"fields" : {
|
|
"slug" : "adresse",
|
|
"name" : "Adresse",
|
|
"schema" : {
|
|
"required" : [
|
|
"streetname",
|
|
"city",
|
|
"country"
|
|
],
|
|
"properties" : {
|
|
"streetname" : {
|
|
"type" : "string"
|
|
},
|
|
"inseecode" : {
|
|
"type" : "string"
|
|
},
|
|
"streetmatriculation" : {
|
|
"type" : "string"
|
|
},
|
|
"ext1" : {
|
|
"type" : "string"
|
|
},
|
|
"zipcode" : {
|
|
"type" : "string"
|
|
},
|
|
"at" : {
|
|
"type" : "string"
|
|
},
|
|
"adresse_inconnnue" : {
|
|
"type" : "boolean",
|
|
"default" : false
|
|
},
|
|
"city" : {
|
|
"type" : "string"
|
|
},
|
|
"streetnumberext" : {
|
|
"type" : "string"
|
|
},
|
|
"country" : {
|
|
"type" : "string"
|
|
},
|
|
"ext2" : {
|
|
"type" : "string"
|
|
},
|
|
"streetnumber" : {
|
|
"type" : "string"
|
|
}
|
|
},
|
|
"type" : "object"
|
|
},
|
|
"caption_template" : "{streetname} {city}"
|
|
}
|
|
},
|
|
{
|
|
"model" : "zoo_meta.relationschema",
|
|
"fields" : {
|
|
"name" : "Habite",
|
|
"slug" : "habite",
|
|
"left" : [
|
|
"individu"
|
|
],
|
|
"right" : [
|
|
"adresse"
|
|
],
|
|
"is_symmetric" : false,
|
|
"caption_template" : "",
|
|
"schema" : {
|
|
"type" : "object",
|
|
"properties" : {
|
|
"principale" : {
|
|
"default" : false,
|
|
"type" : "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"fields" : {
|
|
"right" : [
|
|
"individu"
|
|
],
|
|
"name" : "Responsabilité légale",
|
|
"slug" : "responsabilite-legale",
|
|
"left" : [
|
|
"individu"
|
|
],
|
|
"caption_template" : "",
|
|
"schema" : {
|
|
"required" : [
|
|
"statut"
|
|
],
|
|
"properties" : {
|
|
"facturation" : {
|
|
"default" : false,
|
|
"type" : "boolean"
|
|
},
|
|
"statut" : {
|
|
"type" : "string",
|
|
"enum" : [
|
|
"parent",
|
|
"tiers_de_confiance",
|
|
"representant_personne_morale_qualifiee"
|
|
]
|
|
}
|
|
},
|
|
"type" : "object",
|
|
"title" : "responsabilite_legale"
|
|
},
|
|
"is_symmetric" : false
|
|
},
|
|
"model" : "zoo_meta.relationschema"
|
|
},
|
|
{
|
|
"fields" : {
|
|
"right" : [
|
|
"individu"
|
|
],
|
|
"left" : [
|
|
"individu"
|
|
],
|
|
"slug" : "union",
|
|
"name" : "Union",
|
|
"schema" : {
|
|
"type" : "object",
|
|
"required" : [
|
|
"statut"
|
|
],
|
|
"properties" : {
|
|
"statut" : {
|
|
"type" : "string",
|
|
"enum" : [
|
|
"pacs",
|
|
"mariage",
|
|
"unionlibre"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"caption_template" : "",
|
|
"is_symmetric" : true
|
|
},
|
|
"model" : "zoo_meta.relationschema"
|
|
}
|
|
]
|