UNPKG

@stencila/schema

Version:

Stencila schema and other specifications

97 lines (96 loc) 2.58 kB
{ "title": "Product", "@id": "schema:Product", "role": "tertiary", "status": "stable", "description": "Any offered product or service. For example, a pair of shoes; a concert ticket; the rental of a car; \na haircut; or an episode of a TV show streamed online. https://schema.org/Product\n", "properties": { "type": { "description": "The name of the type and all descendant types.", "type": "string", "enum": [ "Product" ], "default": "Product", "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" }, "brand": { "description": "Brand that the product is labelled with.\n", "$ref": "Brand.schema.json", "from": "Product" }, "logo": { "description": "A logo of of the product. It can be either a URL of the image or image itself.\n", "anyOf": [ { "type": "string", "format": "uri" }, { "$ref": "ImageObject.schema.json" } ], "from": "Product" }, "productID": { "@id": "schema:productID", "description": "Product identification code.\n", "type": "string", "from": "Product" } }, "source": "https://github.com/stencila/schema/blob/master/schema/organization/Product.schema.yaml", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://stencila.github.com/schema/Product.schema.json", "category": "organization", "children": [], "descendants": [], "type": "object", "additionalProperties": false, "required": [ "type" ], "parent": "Thing" }