Schema Structure
This category uses the standard QR code category structure.Schema
Copy
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"title": "Simple VCard category",
"description": "Static QR Category. Simple VCard Schema",
"examples": [],
"additionalProperties": false,
"items": {
"type": "object",
"required": [
"type",
"data"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"profile_info",
"contact_details"
]
},
"data": {
"type": "object"
}
},
"allOf": [
{
"if": {
"properties": {
"type": {
"const": "profile_info"
}
}
},
"then": {
"properties": {
"data": {
"type": "object",
"required": [
"name"
],
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"company": {
"type": "string"
}
}
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "contact_details"
}
}
},
"then": {
"properties": {
"data": {
"type": "object",
"required": [],
"additionalProperties": false,
"properties": {
"emails": {
"type": "array",
"items": {
"type": "object",
"required": [
"email"
],
"additionalProperties": false,
"properties": {
"email": {
"type": "string",
"format": "email"
},
"label": {
"type": "string"
}
}
}
},
"phoneNumbers": {
"type": "array",
"items": {
"type": "object",
"required": [
"phoneNumber"
],
"additionalProperties": false,
"properties": {
"phoneNumber": {
"type": "string"
},
"label": {
"type": "string"
}
}
}
},
"website": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"additionalProperties": false,
"properties": {
"url": {
"type": "string"
},
"label": {
"type": "string"
}
}
}
},
"addresses": {
"type": "array",
"additionalProperties": false,
"items": {
"type": "object",
"required": [],
"additionalProperties": false,
"properties": {
"street": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"type": "string"
},
"country": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"addressLabel": {
"type": "string"
}
}
}
},
"faxes": {
"type": "array",
"items": {
"type": "object",
"required": [],
"additionalProperties": false,
"properties": {
"faxNumber": {
"type": "string"
},
"label": {
"type": "string"
}
}
}
}
}
}
}
}
}
]
}
}