Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit a5b973b

Browse files
fgenickl-
authored andcommitted
Fix miswritten card schema
Also add a "$schema" to explicitly mention that it is a draftv3 written schema.
1 parent 37290cd commit a5b973b

File tree

2 files changed

+219
-218
lines changed

2 files changed

+219
-218
lines changed

card

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,48 @@
11
{
2-
"description": "A representation of a person, company, organization, or place",
3-
"type": "object",
4-
"properties": {
5-
"fn": {
6-
"description": "Formatted Name",
7-
"type": "string"
8-
},
9-
"familyName": { "type": "string", "required": true },
10-
"givenName": { "type": "string", "required": true },
11-
"additionalName": { "type": "array", "items": { "type": "string" } },
12-
"honorificPrefix": { "type": "array", "items": { "type": "string" } },
13-
"honorificSuffix": { "type": "array", "items": { "type": "string" } },
14-
"nickname": { "type": "string" },
15-
"url": { "type": "string", "format": "uri" },
16-
"email": {
17-
"type": "object",
18-
"properties": {
19-
"type": { "type": "string" },
20-
"value": { "type": "string", "format": "email" }
21-
}
22-
}
23-
"tel": {
24-
"type": "object",
25-
"properties": {
26-
"type": { "type": "string" },
27-
"value": { "type": "string", "format": "phone" }
28-
}
29-
}
30-
"adr": { "$ref": "http: //json-schema.org/address" },
31-
"geo": { "$ref": "http: //json-schema.org/geo" },
32-
"tz": { "type": "string" },
33-
"photo": { "type": "string" },
34-
"logo": { "type": "string" },
35-
"sound": { "type": "string" },
36-
"bday": { "type": "string", "format": "date" },
37-
"title": { "type": "string" },
38-
"role": { "type": "string" },
39-
"org": {
40-
"type": "object",
41-
"properties": {
42-
"organizationName": { "type": "string" },
43-
"organizationUnit": { "type": "string" }
44-
}
45-
}
46-
}
2+
"$schema": "http://json-schema.org/draft-03/schema#",
3+
"description": "A representation of a person, company, organization, or place",
4+
"type": "object",
5+
"properties": {
6+
"fn": {
7+
"description": "Formatted Name",
8+
"type": "string"
9+
},
10+
"familyName": { "type": "string", "required": true },
11+
"givenName": { "type": "string", "required": true },
12+
"additionalName": { "type": "array", "items": { "type": "string" } },
13+
"honorificPrefix": { "type": "array", "items": { "type": "string" } },
14+
"honorificSuffix": { "type": "array", "items": { "type": "string" } },
15+
"nickname": { "type": "string" },
16+
"url": { "type": "string", "format": "uri" },
17+
"email": {
18+
"type": "object",
19+
"properties": {
20+
"type": { "type": "string" },
21+
"value": { "type": "string", "format": "email" }
22+
}
23+
},
24+
"tel": {
25+
"type": "object",
26+
"properties": {
27+
"type": { "type": "string" },
28+
"value": { "type": "string", "format": "phone" }
29+
}
30+
},
31+
"adr": { "$ref": "http: //json-schema.org/address" },
32+
"geo": { "$ref": "http: //json-schema.org/geo" },
33+
"tz": { "type": "string" },
34+
"photo": { "type": "string" },
35+
"logo": { "type": "string" },
36+
"sound": { "type": "string" },
37+
"bday": { "type": "string", "format": "date" },
38+
"title": { "type": "string" },
39+
"role": { "type": "string" },
40+
"org": {
41+
"type": "object",
42+
"properties": {
43+
"organizationName": { "type": "string" },
44+
"organizationUnit": { "type": "string" }
45+
}
46+
}
47+
}
4748
}

0 commit comments

Comments
 (0)