Commit 5a90e5d3 authored by Sven Franck's avatar Sven Franck Committed by GitHub

Add validation Pt 1

parent 186c8cf7
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
"description": "Entity address" "description": "Entity address"
}, },
"postal-code": { "postal-code": {
"description": "Entity postal", "description": "Entity postal code",
"type": "string" "type": "string"
}, },
"city": { "city": {
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
"type": "string" "type": "string"
}, },
"mail_contact": { "mail_contact": {
"anyOf": [{
"description": "Entity email contact", "description": "Entity email contact",
"anyOf": [{
"type": "string", "type": "string",
"pattern": "^\\S+@\\S+\\.\\S+$", "pattern": "^\\S+@\\S+\\.\\S+$",
"format": "email", "format": "email",
......
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