You are on page 1of 1

{

"$schema": "http://json-schema.org/draft-03/schema#",
"description": "A representation of a person, company, organization, or plac
e",
"type": "object",
"properties": {
"fn": {
"description": "Formatted Name",
"type": "string"
},
"familyName": { "type": "string", "required": true },
"givenName": { "type": "string", "required": true },
"additionalName": { "type": "array", "items": { "type": "string" } },
"honorificPrefix": { "type": "array", "minItems":1, "maxItems":10, "item
s": { "type": "string", "maxLength":17} },
"honorificSuffix": { "type": "array", "items": { "type": "string" } },
"nickname": { "type": "string" },
"age": { "type": "integer", "required":true, "minimum":18 },
"ssn": { "type": "string", "required":false, "pattern":"[0-9]{3}-[0-9]{2
}-[0-9]{4}", "minLength":5},
"url": { "type": "string", "format": "uri" },
"preferred_format": {"enum":["plaintext", "html", "pdf", 123], "default"
:"plaintext"},
"email": {
"type": "object",
"properties": {
"type": { "type": "string" },
"value": { "type": "string", "format": "email" }
}
},
"tel": {
"required": true,
"type": "object",
"properties": {
"type": { "type": "string" },
"value": { "type": "string", "format": "phone" }
}
},
"tz": { "type": "string" },
"photo": { "type": "string" },
"logo": { "type": "string" },
"sound": { "type": "string" },
"bday": { "type": "string", "format": "date" },
"title": { "type": "string" },
"role": { "type": "string" },
"org": {
"type": "object",
"properties": {
"organizationName": { "type": "string" },
"organizationUnit": { "type": "string" }
}
}
}
}

You might also like