/aosp_15_r20/external/json-schema-validator/src/test/suite/ |
H A D | README.md | 1 # JSON Schema Test Suite 3 …(https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](https://github.com/json-sche… 5 …](https://opencollective.com/json-schema/all/badge.svg?label=financial+contributors)](https://open… 8 …om/json-schema-org/JSON-Schema-Test-Suite/workflows/Test%20Suite%20Sanity%20Checking/badge.svg)](h… 10 This repository contains a set of JSON objects that implementers of JSON Schema validation librarie… 12 It is meant to be language agnostic and should require only a JSON parser. 13 The conversion of the JSON objects into tests within a specific language and test framework of choi… 17 All JSON Schema specification releases should be well covered by this suite, including drafts 2020-… 20 Additional coverage is always welcome, particularly for bugs encountered in real-world implementati… 21 …ttps://github.com/json-schema-org/JSON-Schema-Test-Suite/issues) or [submit a PR](https://github.c… [all …]
|
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft2019-09/ |
H A D | ref.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2019-09/schema", 36 "schema": { object 37 "$schema": "https://json-schema.org/draft/2019-09/schema", 58 "schema": { object 59 "$schema": "https://json-schema.org/draft/2019-09/schema", 80 "schema": { object 81 "$schema": "https://json-schema.org/draft/2019-09/schema", 128 "schema": { object 129 "$schema": "https://json-schema.org/draft/2019-09/schema", [all …]
|
H A D | refRemote.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2019-09/schema", 6 "$ref": "http://localhost:1234/draft2019-09/integer.json" 23 "schema": { object 24 "$schema": "https://json-schema.org/draft/2019-09/schema", 25 "$ref": "http://localhost:1234/draft2019-09/subSchemas.json#/$defs/integer" 42 "schema": { object 43 "$schema": "https://json-schema.org/draft/2019-09/schema", 44 "$ref": "http://localhost:1234/draft2019-09/locationIndependentIdentifier.json#foo" 61 "schema": { object [all …]
|
H A D | unevaluatedProperties.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2019-09/schema", 25 "description": "unevaluatedProperties schema", 26 "schema": { object 27 "$schema": "https://json-schema.org/draft/2019-09/schema", 58 "schema": { object 59 "$schema": "https://json-schema.org/draft/2019-09/schema", 80 "schema": { object 81 "$schema": "https://json-schema.org/draft/2019-09/schema", 108 "schema": { object [all …]
|
H A D | recursiveRef.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2019-09/schema", 36 "schema": { object 37 "$schema": "https://json-schema.org/draft/2019-09/schema", 38 "$id": "http://localhost:4242/draft2019-09/recursiveRef2/schema.json", 41 "$id": "myobject.json", 87 "schema": { object 88 "$schema": "https://json-schema.org/draft/2019-09/schema", 89 "$id": "http://localhost:4242/draft2019-09/recursiveRef3/schema.json", 93 "$id": "myobject.json", [all …]
|
H A D | unevaluatedItems.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2019-09/schema", 23 "schema": { object 24 "$schema": "https://json-schema.org/draft/2019-09/schema", 41 "description": "unevaluatedItems as schema", 42 "schema": { object 43 "$schema": "https://json-schema.org/draft/2019-09/schema", 66 "schema": { object 67 "$schema": "https://json-schema.org/draft/2019-09/schema", 81 "schema": { object [all …]
|
H A D | format.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2019-09/schema", 42 "description": "idn-email format", 43 "schema": { object 44 "$schema": "https://json-schema.org/draft/2019-09/schema", 45 "format": "idn-email" 82 "schema": { object 83 "$schema": "https://json-schema.org/draft/2019-09/schema", 121 "schema": { object 122 "$schema": "https://json-schema.org/draft/2019-09/schema", [all …]
|
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft2020-12/ |
H A D | ref.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2020-12/schema", 36 "schema": { object 37 "$schema": "https://json-schema.org/draft/2020-12/schema", 58 "schema": { object 59 "$schema": "https://json-schema.org/draft/2020-12/schema", 80 "schema": { object 81 "$schema": "https://json-schema.org/draft/2020-12/schema", 128 "schema": { object 129 "$schema": "https://json-schema.org/draft/2020-12/schema", [all …]
|
H A D | dynamicRef.json | 3 …"description": "A $dynamicRef to a $dynamicAnchor in the same schema resource behaves like a norma… 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2020-12/schema", 6 "$id": "https://test.json-schema.org/dynamicRef-dynamicAnchor-same-schema/root", 23 "description": "An array containing non-strings is invalid", 30 …"description": "A $dynamicRef to an $anchor in the same schema resource behaves like a normal $ref… 31 "schema": { object 32 "$schema": "https://json-schema.org/draft/2020-12/schema", 33 "$id": "https://test.json-schema.org/dynamicRef-anchor-same-schema/root", 50 "description": "An array containing non-strings is invalid", [all …]
|
H A D | refRemote.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2020-12/schema", 6 "$ref": "http://localhost:1234/draft2020-12/integer.json" 23 "schema": { object 24 "$schema": "https://json-schema.org/draft/2020-12/schema", 25 "$ref": "http://localhost:1234/draft2020-12/subSchemas.json#/$defs/integer" 42 "schema": { object 43 "$schema": "https://json-schema.org/draft/2020-12/schema", 44 "$ref": "http://localhost:1234/draft2020-12/locationIndependentIdentifier.json#foo" 61 "schema": { object [all …]
|
H A D | unevaluatedProperties.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2020-12/schema", 25 "description": "unevaluatedProperties schema", 26 "schema": { object 27 "$schema": "https://json-schema.org/draft/2020-12/schema", 58 "schema": { object 59 "$schema": "https://json-schema.org/draft/2020-12/schema", 80 "schema": { object 81 "$schema": "https://json-schema.org/draft/2020-12/schema", 108 "schema": { object [all …]
|
H A D | unevaluatedItems.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2020-12/schema", 23 "schema": { object 24 "$schema": "https://json-schema.org/draft/2020-12/schema", 41 "description": "unevaluatedItems as schema", 42 "schema": { object 43 "$schema": "https://json-schema.org/draft/2020-12/schema", 66 "schema": { object 67 "$schema": "https://json-schema.org/draft/2020-12/schema", 81 "schema": { object [all …]
|
H A D | format.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2020-12/schema", 47 "description": "idn-email format", 48 "schema": { object 49 "$schema": "https://json-schema.org/draft/2020-12/schema", 50 "format": "idn-email" 84 "description": "invalid idn-email string is only an annotation by default", 92 "schema": { object 93 "$schema": "https://json-schema.org/draft/2020-12/schema", 136 "schema": { object [all …]
|
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft-next/ |
H A D | ref.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/next/schema", 36 "schema": { object 37 "$schema": "https://json-schema.org/draft/next/schema", 58 "schema": { object 59 "$schema": "https://json-schema.org/draft/next/schema", 80 "schema": { object 81 "$schema": "https://json-schema.org/draft/next/schema", 128 "schema": { object 129 "$schema": "https://json-schema.org/draft/next/schema", [all …]
|
H A D | refRemote.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/next/schema", 6 "$ref": "http://localhost:1234/draft-next/integer.json" 23 "schema": { object 24 "$schema": "https://json-schema.org/draft/next/schema", 25 "$ref": "http://localhost:1234/draft-next/subSchemas.json#/$defs/integer" 42 "schema": { object 43 "$schema": "https://json-schema.org/draft/next/schema", 44 "$ref": "http://localhost:1234/draft-next/locationIndependentIdentifier.json#foo" 61 "schema": { object [all …]
|
H A D | dynamicRef.json | 3 …"description": "A $dynamicRef to a $dynamicAnchor in the same schema resource behaves like a norma… 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/next/schema", 6 "$id": "https://test.json-schema.org/dynamicRef-dynamicAnchor-same-schema/root", 23 "description": "An array containing non-strings is invalid", 30 …"description": "A $ref to a $dynamicAnchor in the same schema resource behaves like a normal $ref … 31 "schema": { object 32 "$schema": "https://json-schema.org/draft/next/schema", 33 "$id": "https://test.json-schema.org/ref-dynamicAnchor-same-schema/root", 50 "description": "An array containing non-strings is invalid", [all …]
|
H A D | unevaluatedProperties.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/next/schema", 25 "description": "unevaluatedProperties schema", 26 "schema": { object 27 "$schema": "https://json-schema.org/draft/next/schema", 58 "schema": { object 59 "$schema": "https://json-schema.org/draft/next/schema", 80 "schema": { object 81 "$schema": "https://json-schema.org/draft/next/schema", 108 "schema": { object [all …]
|
H A D | unevaluatedItems.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/next/schema", 23 "schema": { object 24 "$schema": "https://json-schema.org/draft/next/schema", 41 "description": "unevaluatedItems as schema", 42 "schema": { object 43 "$schema": "https://json-schema.org/draft/next/schema", 66 "schema": { object 67 "$schema": "https://json-schema.org/draft/next/schema", 81 "schema": { object [all …]
|
H A D | format.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/next/schema", 47 "description": "idn-email format", 48 "schema": { object 49 "$schema": "https://json-schema.org/draft/next/schema", 50 "format": "idn-email" 84 "description": "invalid idn-email string is only an annotation by default", 92 "schema": { object 93 "$schema": "https://json-schema.org/draft/next/schema", 136 "schema": { object [all …]
|
/aosp_15_r20/external/json-schema-validator/ |
H A D | README.md | 1 [Stack Overflow](https://stackoverflow.com/questions/tagged/light-4j) | 2 [Google Group](https://groups.google.com/forum/#!forum/light-4j) | 3 [Gitter Chat](https://gitter.im/networknt/json-schema-validator) | 6 [Documentation](https://doc.networknt.com/library/json-schema-validator/) | 9 …ps://github.com/networknt/json-schema-validator/actions/workflows/ci.yml/badge.svg)](https://githu… 10 …s.io/maven-central/v/com.networknt/json-schema-validator.svg)](http://search.maven.org/#search%7Cg… 11 …odecov.io/github/networknt/json-schema-validator/coverage.svg?branch=master)](https://codecov.io/g… 12 …/www.javadoc.io/badge/com.networknt/json-schema-validator.svg)](https://www.javadoc.io/doc/com.net… 14 …JSON Schema Core Draft v4, v6, v7, v2019-09 and v2020-12](http://json-schema.org/latest/json-schem… 16 …JSON node based on the schema, the [walkers](doc/walkers.md) can help. The JSON parser used is the… [all …]
|
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft-next/optional/ |
H A D | ecmascript-regex.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/next/schema", 24 "schema": { object 25 "$schema": "https://json-schema.org/draft/next/schema", 44 "schema": { object 45 "$schema": "https://json-schema.org/draft/next/schema", 64 "schema": { object 65 "$schema": "https://json-schema.org/draft/next/schema", 84 "schema": { object 85 "$schema": "https://json-schema.org/draft/next/schema", [all …]
|
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft2020-12/optional/ |
H A D | ecmascript-regex.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2020-12/schema", 24 "schema": { object 25 "$schema": "https://json-schema.org/draft/2020-12/schema", 44 "schema": { object 45 "$schema": "https://json-schema.org/draft/2020-12/schema", 64 "schema": { object 65 "$schema": "https://json-schema.org/draft/2020-12/schema", 84 "schema": { object 85 "$schema": "https://json-schema.org/draft/2020-12/schema", [all …]
|
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft2019-09/optional/ |
H A D | ecmascript-regex.json | 4 "schema": { object 5 "$schema": "https://json-schema.org/draft/2019-09/schema", 24 "schema": { object 25 "$schema": "https://json-schema.org/draft/2019-09/schema", 44 "schema": { object 45 "$schema": "https://json-schema.org/draft/2019-09/schema", 64 "schema": { object 65 "$schema": "https://json-schema.org/draft/2019-09/schema", 84 "schema": { object 85 "$schema": "https://json-schema.org/draft/2019-09/schema", [all …]
|
/aosp_15_r20/external/json-schema-validator/src/test/java/com/networknt/schema/ |
H A D | VocabularyTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 17 package com.networknt.schema; 28 import com.networknt.schema.SpecVersion.VersionFlag; 29 import com.networknt.schema.output.OutputUnit; 38 + " \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n" in noValidation() 39 + " \"$id\": \"https://www.example.com/no-validation-no-format/schema\",\r\n" in noValidation() 42 + " \"https://json-schema.org/draft/2020-12/vocab/applicator\": true,\r\n" in noValidation() 43 + " \"https://json-schema.org/draft/2020-12/vocab/core\": true\r\n" in noValidation() 46 + " { \"$ref\": \"https://json-schema.org/draft/2020-12/meta/applicator\" },\r\n" in noValidation() 47 + " { \"$ref\": \"https://json-schema.org/draft/2020-12/meta/core\" }\r\n" in noValidation() [all …]
|
H A D | OutputUnitTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 16 package com.networknt.schema; 31 import com.networknt.schema.SpecVersion.VersionFlag; 32 import com.networknt.schema.output.OutputUnit; 33 import com.networknt.schema.serialization.JsonMapperFactory; 39 …* "https://github.com/json-schema-org/json-schema-spec/blob/main/jsonschema-validation-output… 40 * Specification for Machine-Readable Output for JSON Schema Validation and 45 + " \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n" 46 + " \"$id\": \"https://json-schema.org/schemas/example\",\r\n" 52 + " { \"required\": [\"unspecified-prop\"] },\r\n" [all …]
|