UNPKG

1.53 kBJSONView Raw
1{
2 "title": "IntegerValidator",
3 "@id": "stencila:IntegerValidator",
4 "extends": "Validator",
5 "role": "validation",
6 "status": "unstable",
7 "category": "data",
8 "description": "A validator specifying the constraints on an integer node.",
9 "$comment": "A node will be valid if it is a number with no\nfractional part and meets any additional constraints, such as `multipleOf`,\nspecified in the validator.\nAnalogous to the JSON Schema `integer` validation [type](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.1.1).\n",
10 "properties": {
11 "type": {
12 "@id": "schema:type",
13 "description": "The name of the type.",
14 "type": "string",
15 "enum": [
16 "IntegerValidator"
17 ],
18 "default": "IntegerValidator",
19 "from": "Entity"
20 },
21 "id": {
22 "@id": "schema:id",
23 "description": "The identifier for this item.",
24 "type": "string",
25 "from": "Entity"
26 },
27 "meta": {
28 "@id": "stencila:meta",
29 "description": "Metadata associated with this item.",
30 "type": "object",
31 "from": "Entity"
32 }
33 },
34 "file": "IntegerValidator.schema.yaml",
35 "children": [],
36 "descendants": [],
37 "$schema": "http://json-schema.org/draft-07/schema#",
38 "$id": "https://schema.stenci.la/v1/IntegerValidator.schema.json",
39 "source": "https://github.com/stencila/schema/blob/master/schema/IntegerValidator.schema.yaml",
40 "type": "object",
41 "additionalProperties": false,
42 "required": [
43 "type"
44 ],
45 "propertyAliases": {}
46}