003 File Manager
Current Path:
/usr/src/contrib/libucl/tests/schema
usr
/
src
/
contrib
/
libucl
/
tests
/
schema
/
📁
..
📄
additionalItems.json
(2.23 KB)
📄
additionalProperties.json
(2.14 KB)
📄
allOf.json
(2.95 KB)
📄
anyOf.json
(1.57 KB)
📄
definitions.json
(854 B)
📄
dependencies.json
(3.07 KB)
📄
enum.json
(1.93 KB)
📄
items.json
(1.11 KB)
📄
maxItems.json
(706 B)
📄
maxLength.json
(697 B)
📄
maxProperties.json
(759 B)
📄
maximum.json
(1.04 KB)
📄
minItems.json
(693 B)
📄
minLength.json
(696 B)
📄
minProperties.json
(725 B)
📄
minimum.json
(1.04 KB)
📄
multipleOf.json
(1.49 KB)
📄
not.json
(2.21 KB)
📄
oneOf.json
(1.57 KB)
📄
pattern.json
(582 B)
📄
patternProperties.json
(3.46 KB)
📄
properties.json
(2.81 KB)
📄
ref.json
(3.81 KB)
📄
refRemote.json
(1.99 KB)
📄
required.json
(923 B)
📄
type.json
(9.09 KB)
📄
uniqueItems.json
(2.55 KB)
Editing: additionalItems.json
[ { "description": "additionalItems as schema", "schema": { "items": [{}], "additionalItems": {"type": "integer"} }, "tests": [ { "description": "additional items match schema", "data": [ null, 2, 3, 4 ], "valid": true }, { "description": "additional items do not match schema", "data": [ null, 2, 3, "foo" ], "valid": false } ] }, { "description": "items is schema, no additionalItems", "schema": { "items": {}, "additionalItems": false }, "tests": [ { "description": "all items match schema", "data": [ 1, 2, 3, 4, 5 ], "valid": true } ] }, { "description": "array of items with no additionalItems", "schema": { "items": [{}, {}, {}], "additionalItems": false }, "tests": [ { "description": "no additional items present", "data": [ 1, 2, 3 ], "valid": true }, { "description": "additional items are not permitted", "data": [ 1, 2, 3, 4 ], "valid": false } ] }, { "description": "additionalItems as false without items", "schema": {"additionalItems": false}, "tests": [ { "description": "items defaults to empty schema so everything is valid", "data": [ 1, 2, 3, 4, 5 ], "valid": true }, { "description": "ignores non-arrays", "data": {"foo" : "bar"}, "valid": true } ] }, { "description": "additionalItems are allowed by default", "schema": {"items": [{"type": "integer"}]}, "tests": [ { "description": "only the first item is validated", "data": [1, "foo", false], "valid": true } ] } ]
Upload File
Create Folder