UNPKG

1.63 kBJSONView Raw
1{
2 "title": "TupleValidator",
3 "@id": "stencila:TupleValidator",
4 "extends": "Validator",
5 "role": "validation",
6 "status": "unstable",
7 "category": "data",
8 "description": "A validator specifying constraints on an array of heterogeneous items.",
9 "properties": {
10 "type": {
11 "@id": "schema:type",
12 "description": "The name of the type.",
13 "type": "string",
14 "enum": [
15 "TupleValidator"
16 ],
17 "default": "TupleValidator",
18 "from": "Entity"
19 },
20 "id": {
21 "@id": "schema:id",
22 "description": "The identifier for this item.",
23 "type": "string",
24 "from": "Entity"
25 },
26 "meta": {
27 "@id": "stencila:meta",
28 "description": "Metadata associated with this item.",
29 "type": "object",
30 "from": "Entity"
31 },
32 "items": {
33 "@id": "schema:itemListElement",
34 "description": "An array of validators specifying the constraints on each successive item in the array.",
35 "type": "array",
36 "items": {
37 "$ref": "ValidatorTypes.schema.json"
38 },
39 "from": "TupleValidator",
40 "isArray": true,
41 "isPlural": true,
42 "aliases": [
43 "item"
44 ]
45 }
46 },
47 "file": "TupleValidator.schema.yaml",
48 "children": [],
49 "descendants": [],
50 "$schema": "http://json-schema.org/draft-07/schema#",
51 "$id": "https://schema.stenci.la/v1/TupleValidator.schema.json",
52 "source": "https://github.com/stencila/schema/blob/master/schema/TupleValidator.schema.yaml",
53 "type": "object",
54 "propertyAliases": {
55 "item": "items"
56 },
57 "additionalProperties": false,
58 "required": [
59 "type"
60 ]
61}