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

Commit a14190b

Browse files
committed
added spec and reference schemas
0 parents  commit a14190b

File tree

10 files changed

+1394
-0
lines changed

10 files changed

+1394
-0
lines changed

address

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{"description":"An Address following the convention of http://microformats.org/wiki/hcard",
2+
"type":"object",
3+
"properties":{
4+
"post-office-box":{"type":"string","requires":"street-address"},
5+
"extended-address":{"type":"string","requires":"street-address"},
6+
"street-address":{"type":"string","requires":"region"},
7+
"locality":{"type":"string","requires":"region", "required":true},
8+
"region":{"type":"string","requires":"country-name", "required":true},
9+
"postal-code":{"type":"string"},
10+
"country-name":{"type":"string", "required":true}
11+
}
12+
}

calendar

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{"description":"A representation of an event",
2+
"type":"object",
3+
"properties":{
4+
"dtstart":{"format":"date-time","type":"string","description":"Event starting time","required":true},
5+
"summary":{"type":"string","required":true},
6+
"___location":{"type":"string"},
7+
"url":{"type":"string","format":"url"},
8+
"dtend":{"format":"date-time","type":"string","description":"Event ending time"},
9+
"duration":{"format":"date","type":"string","description":"Event duration"},
10+
"rdate":{"format":"date-time","type":"string","description":"Recurrence date"},
11+
"rrule":{"type":"string","description":"Recurrence rule"},
12+
"category":{"type":"string"},
13+
"description":{"type":"string"},
14+
"geo":"http://json-schema.org/geo"
15+
}
16+
}
17+
18+
19+
20+

card

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

0 commit comments

Comments
 (0)