Skip to content

Commit

Permalink
update contactpoint validation
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVHG committed Oct 29, 2024
1 parent 0d692b7 commit 8fa8fbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 100 deletions.
52 changes: 2 additions & 50 deletions event-contactPoint-put.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,3 @@
{
"title": "event.contactPoint.put",
"type": "object",
"properties": {
"phone": {
"type": "array",
"description": "List of phone numbers for contact purposes (can be empty)",
"minItems": 0,
"items": {
"type": "string",
"description": "Phone number for contact purposes."
}
},
"email": {
"type": "array",
"description": "List of email addresses for contact purposes (can be empty)",
"minItems": 0,
"items": {
"type": "string",
"description": "Email address for contact purposes."
}
},
"url": {
"type": "array",
"description": "List of URLs for contact purposes (can be empty)",
"minItems": 0,
"items": {
"type": "string",
"description": "URL to a website for contact purposes."
}
}
},
"required": [
"phone",
"email",
"url"
],
"examples": [
{
"phone": [
"+32/1234567890"
],
"email": [
"[email protected]"
],
"url": [
"https://www.example.com"
]
}
]
}
"$ref": "./common-contactPoint.json"
}
52 changes: 2 additions & 50 deletions place-contactPoint-put.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,3 @@
{
"title": "place.contactPoint.put",
"type": "object",
"properties": {
"phone": {
"type": "array",
"description": "List of phone numbers for contact purposes (can be empty)",
"minItems": 0,
"items": {
"type": "string",
"description": "Phone number for contact purposes."
}
},
"email": {
"type": "array",
"description": "List of email addresses for contact purposes (can be empty)",
"minItems": 0,
"items": {
"type": "string",
"description": "Email address for contact purposes."
}
},
"url": {
"type": "array",
"description": "List of URLs for contact purposes (can be empty)",
"minItems": 0,
"items": {
"type": "string",
"description": "URL to a website for contact purposes."
}
}
},
"required": [
"phone",
"email",
"url"
],
"examples": [
{
"phone": [
"+32/1234567890"
],
"email": [
"[email protected]"
],
"url": [
"https://www.example.com"
]
}
]
}
"$ref": "./common-contactPoint.json"
}

0 comments on commit 8fa8fbb

Please sign in to comment.