Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SCDL
Schéma Base adresse locale
Commits
9c7112e8
Commit
9c7112e8
authored
May 31, 2018
by
Constance de Quatrebarbes
Browse files
Added pattern constraint
parent
44e1eb7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
schema-scdl-adresses.json
View file @
9c7112e8
...
...
@@ -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-z
0-9
]+"
"pattern"
:
"^
[
a-z
A-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]+"
}
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment