@stencila/schema
Version:
Stencila schema and other specifications
60 lines (59 loc) • 1.57 kB
JSON
{
"title": "TupleValidator",
"@id": "stencila:TupleValidator",
"extends": "Entity",
"role": "validation",
"status": "unstable",
"category": "data",
"description": "A validator specifying constraints on an array of heterogeneous items.",
"properties": {
"type": {
"@id": "schema:type",
"description": "The name of the type.",
"type": "string",
"enum": [
"TupleValidator"
],
"default": "TupleValidator",
"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"
},
"items": {
"@id": "schema:itemListElement",
"description": "An array of validators specifying the constraints on each successive item in the array.",
"type": "array",
"items": {
"$ref": "ValidatorTypes.schema.json"
},
"from": "TupleValidator",
"aliases": [
"item"
]
}
},
"file": "TupleValidator.schema.yaml",
"children": [],
"descendants": [],
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schema.stenci.la/v0/TupleValidator.schema.json",
"source": "https://github.com/stencila/schema/blob/master/TupleValidator.schema.yaml",
"type": "object",
"propertyAliases": {
"item": "items"
},
"additionalProperties": false,
"required": [
"type"
]
}