@stencila/schema
Version:
Stencila schema and other specifications
139 lines (138 loc) • 3.56 kB
JSON
{
"title": "Brand",
"@id": "schema:Brand",
"extends": "Thing",
"role": "tertiary",
"status": "unstable",
"category": "metadata",
"description": "A brand used by an organization or person for labeling a product,\nproduct group, or similar.\n",
"properties": {
"type": {
"@id": "schema:type",
"description": "The name of the type.",
"type": "string",
"enum": [
"Brand"
],
"default": "Brand",
"from": "Entity"
},
"id": {
"@id": "schema:id",
"description": "The identifier for this item.",
"type": "string",
"from": "Entity"
},
"meta": {
"@id": "stencila:meta",
"description": "Metadata associated with this item.",
"type": "object",
"from": "Entity"
},
"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.",
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "Node.schema.json"
}
}
],
"from": "Thing"
},
"identifiers": {
"@id": "schema:identifier",
"description": "Any kind of identifier for any kind of Thing.",
"$comment": "Some identifiers have specific properties e.g the `issn` property for\nthe `Periodical` type. These should be used in preference to this\nproperty which is intended for identifiers that do not yet have a\nspecific property. Identifiers can be represented as strings, but\nusing a `PropertyValue` will usually be better because it allows\nfor `propertyID` (i.e. the type of identifier).\n",
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "PropertyValue.schema.json"
}
]
},
"from": "Thing",
"aliases": [
"identifier"
]
},
"name": {
"@id": "schema:name",
"description": "The name of the item.",
"type": "string",
"from": "Thing",
"override": true
},
"url": {
"@id": "schema:url",
"description": "The URL of the item.",
"type": "string",
"format": "uri",
"from": "Thing"
},
"logo": {
"@id": "schema:logo",
"description": "A logo associated with the brand.",
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"$ref": "ImageObject.schema.json"
}
],
"from": "Brand"
},
"reviews": {
"@id": "schema:review",
"description": "Reviews of the brand.",
"type": "array",
"items": {
"type": "string"
},
"from": "Brand",
"aliases": [
"review"
]
}
},
"required": [
"type",
"name"
],
"file": "Brand.schema.yaml",
"children": [],
"descendants": [],
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schema.stenci.la/v0/Brand.schema.json",
"source": "https://github.com/stencila/schema/blob/master/Brand.schema.yaml",
"type": "object",
"propertyAliases": {
"alternateName": "alternateNames",
"identifier": "identifiers",
"review": "reviews"
},
"additionalProperties": false
}