@stencila/schema
Version:
Extensions to schema.org to support semantic, composable, parameterize-able and executable documents
71 lines (70 loc) • 1.78 kB
JSON
{
"title": "Validator",
"@id": "stencila:Validator",
"extends": "Entity",
"role": "validation",
"status": "unstable",
"category": "data",
"description": "A base for all validator types.",
"$comment": "The main purpose of this type is to obtain a generated union type\nfor all validators.\n",
"file": "Validator.schema.yaml",
"children": [
"ArrayValidator",
"BooleanValidator",
"ConstantValidator",
"EnumValidator",
"IntegerValidator",
"NumberValidator",
"StringValidator",
"TupleValidator"
],
"descendants": [
"ArrayValidator",
"BooleanValidator",
"ConstantValidator",
"EnumValidator",
"IntegerValidator",
"NumberValidator",
"StringValidator",
"TupleValidator"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schema.stenci.la/v1/Validator.schema.json",
"source": "https://github.com/stencila/schema/blob/master/schema/Validator.schema.yaml",
"properties": {
"type": {
"@id": "schema:type",
"description": "The name of the type.",
"type": "string",
"enum": [
"Validator",
"ArrayValidator",
"BooleanValidator",
"ConstantValidator",
"EnumValidator",
"IntegerValidator",
"NumberValidator",
"StringValidator",
"TupleValidator"
],
"default": "Validator",
"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"
}
},
"required": [
"type"
],
"propertyAliases": {}
}