forked from project-open-data/project-open-data.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvcard.json
32 lines (32 loc) · 934 Bytes
/
vcard.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://project-open-data.cio.gov/v1.1/schema/vcard.json#",
"title": "Project Open Data ContactPoint vCard",
"description": "A Dataset ContactPoint as a vCard object",
"type": "object",
"required": [
"fn",
"hasEmail"
],
"properties": {
"@type": {
"title": "Metadata Context",
"description": "IRI for the JSON-LD data type. This should be vcard:Contact for contactPoint",
"enum": [
"vcard:Contact"
]
},
"fn": {
"title": "Contact Name",
"description": "A full formatted name, eg Firstname Lastname",
"type": "string",
"minLength": 1
},
"hasEmail": {
"title": "Email",
"description": "Email address for the contact",
"pattern": "^mailto:[\\w\\_\\~\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=\\:.-]+@[\\w.-]+\\.[\\w.-]+?$",
"type": "string"
}
}
}