UNPKG

1.78 kBJSONView Raw
1{
2 "title": "Validator",
3 "@id": "stencila:Validator",
4 "extends": "Entity",
5 "role": "validation",
6 "status": "unstable",
7 "category": "data",
8 "description": "A base for all validator types.",
9 "$comment": "The main purpose of this type is to obtain a generated union type\nfor all validators.\n",
10 "file": "Validator.schema.yaml",
11 "children": [
12 "ArrayValidator",
13 "BooleanValidator",
14 "ConstantValidator",
15 "EnumValidator",
16 "IntegerValidator",
17 "NumberValidator",
18 "StringValidator",
19 "TupleValidator"
20 ],
21 "descendants": [
22 "ArrayValidator",
23 "BooleanValidator",
24 "ConstantValidator",
25 "EnumValidator",
26 "IntegerValidator",
27 "NumberValidator",
28 "StringValidator",
29 "TupleValidator"
30 ],
31 "$schema": "http://json-schema.org/draft-07/schema#",
32 "$id": "https://schema.stenci.la/v1/Validator.schema.json",
33 "source": "https://github.com/stencila/schema/blob/master/schema/Validator.schema.yaml",
34 "properties": {
35 "type": {
36 "@id": "schema:type",
37 "description": "The name of the type.",
38 "type": "string",
39 "enum": [
40 "Validator",
41 "ArrayValidator",
42 "BooleanValidator",
43 "ConstantValidator",
44 "EnumValidator",
45 "IntegerValidator",
46 "NumberValidator",
47 "StringValidator",
48 "TupleValidator"
49 ],
50 "default": "Validator",
51 "from": "Entity"
52 },
53 "id": {
54 "@id": "schema:id",
55 "description": "The identifier for this item.",
56 "type": "string",
57 "from": "Entity"
58 },
59 "meta": {
60 "@id": "stencila:meta",
61 "description": "Metadata associated with this item.",
62 "type": "object",
63 "from": "Entity"
64 }
65 },
66 "required": [
67 "type"
68 ],
69 "propertyAliases": {}
70}