Added pattern constraint

parent 44e1eb7a
......@@ -17,7 +17,8 @@
"example": "35238_3961_00007",
"constraints": {
"required": true,
"minLength": 16
"minLength": 16,
"pattern": "^[A-Za-z0-9_]+$"
}
},
{
......@@ -36,7 +37,8 @@
"example": "Rue du Rempart",
"constraints": {
"required": true,
"minLength": 3
"minLength": 3,
"pattern":"^[a-zA-Z0-9\\-\\s\\d\\u00C0-\\u00FF]+$"
}
},
......@@ -58,7 +60,7 @@
"description": "Indice de répétition et/ou complément d'adresse (nom d’entrée d’immeuble) normalisé en minuscules sans espace",
"example": "ter",
"constraints": {
"pattern": "[^a-z0-9]+"
"pattern": "^[a-zA-Z\\d\\s\\u00C0-\\u00FF]+$"
}
},
{
......@@ -138,7 +140,8 @@
"description":"Nom de l’organisme ayant créé ou diffusé cette adresse",
"example":"Rennes Métropole",
"constraints": {
"required": true
"required": true,
"pattern": "[a-zA-Z0-9\\d\\s\\u00C0-\\u00FF]+"
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment