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: not.json
[ { "description": "not", "schema": { "not": {"type": "integer"} }, "tests": [ { "description": "allowed", "data": "foo", "valid": true }, { "description": "disallowed", "data": 1, "valid": false } ] }, { "description": "not multiple types", "schema": { "not": {"type": ["integer", "boolean"]} }, "tests": [ { "description": "valid", "data": "foo", "valid": true }, { "description": "mismatch", "data": 1, "valid": false }, { "description": "other mismatch", "data": true, "valid": false } ] }, { "description": "not more complex schema", "schema": { "not": { "type": "object", "properties": { "foo": { "type": "string" } } } }, "tests": [ { "description": "match", "data": 1, "valid": true }, { "description": "other match", "data": {"foo": 1}, "valid": true }, { "description": "mismatch", "data": {"foo": "bar"}, "valid": false } ] }, { "description": "forbidden property", "schema": { "properties": { "foo": { "not": {} } } }, "tests": [ { "description": "property present", "data": {"foo": 1, "bar": 2}, "valid": false }, { "description": "property absent", "data": {"bar": 1, "baz": 2}, "valid": true } ] } ]
Upload File
Create Folder