@stencila/schema
Version:
Stencila schema and other specifications
106 lines (105 loc) • 2.92 kB
JSON
{
"title": "ContactPoint",
"@id": "schema:contactPoint",
"role": "tertiary",
"status": "unstable",
"description": "A contact point—for example, a R&D department. https://schema.org/ContactPoint.",
"properties": {
"type": {
"description": "The name of the type and all descendant types.",
"type": "string",
"enum": [
"ContactPoint"
],
"default": "ContactPoint",
"from": "Thing"
},
"id": {
"description": "The identifier for this item.",
"type": "string",
"from": "Thing"
},
"alternateNames": {
"@id": "schema:alternateName",
"description": "Alternate names (aliases) for the item.",
"type": "array",
"items": {
"type": "string"
},
"from": "Thing",
"aliases": [
"alternateName"
]
},
"description": {
"@id": "schema:description",
"description": "A description of the item.",
"type": "string",
"from": "Thing"
},
"meta": {
"@id": "stencila:meta",
"description": "Metadata associated with this item.",
"type": "object",
"from": "Thing"
},
"name": {
"@id": "schema:name",
"description": "The name of the item.",
"type": "string",
"from": "Thing"
},
"url": {
"@id": "schema:url",
"description": "The URL of the item.",
"type": "string",
"format": "uri",
"from": "Thing"
},
"availableLanguages": {
"@id": "schema:availableLanguage",
"description": "Languages (human not programming) in which it is possible to communicate with the organization/department etc.\n",
"type": "array",
"items": {
"type": "string"
},
"from": "ContactPoint",
"aliases": [
"availableLanguage"
]
},
"emails": {
"@id": "schema:email",
"description": "Email address for correspondence. It must be provided in a valid email format (eg. info@example.com ).\n",
"type": "array",
"items": {
"type": "string",
"format": "email"
},
"from": "ContactPoint",
"aliases": [
"email"
]
},
"telephone": {
"@id": "schema:telephone",
"description": "\"Phone contact number. Accepted formats: +44 123455, (02)12345, 006645667.\"\n",
"type": "string",
"pattern": "^[+#*\\(\\)\\[\\]]*([0-9][ ext+-pw#*\\(\\)\\[\\]]*){6,45}$",
"from": "ContactPoint"
}
},
"source": "https://github.com/stencila/schema/blob/master/schema/organization/ContactPoint.schema.yaml",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://stencila.github.com/schema/ContactPoint.schema.json",
"category": "organization",
"children": [],
"descendants": [],
"type": "object",
"aliases": true,
"additionalProperties": false,
"required": [
"type"
],
"parent": "Thing"
}