UNPKG

alterschema

Version:

Convert between schema specifications

125 lines (124 loc) 2.68 kB
[ { "name": "boolean true", "schema": true, "trail": [ { "type": "jsonschema-2019-09", "path": [] } ] }, { "name": "boolean false", "schema": false, "trail": [ { "type": "jsonschema-2019-09", "path": [] } ] }, { "name": "draft-handrews-json-schema-validation-02 (8.2.4.6)", "schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "https://example.net/root.json", "items": { "type": "array", "items": { "$ref": "#item" } }, "$defs": { "single": { "$anchor": "item", "type": "object", "additionalProperties": { "$ref": "other.json" } } } }, "trail": [ { "type": "jsonschema-2019-09", "path": [] }, { "type": "jsonschema-2019-09", "path": [ "$defs", "single" ] }, { "type": "jsonschema-2019-09", "path": [ "$defs", "single", "additionalProperties" ] }, { "type": "jsonschema-2019-09", "path": [ "items" ] }, { "type": "jsonschema-2019-09", "path": [ "items", "items" ] } ] }, { "name": "draft-handrews-json-schema-validation-02 (8.6) example 3", "schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "type": "string", "contentMediaType": "application/jwt", "contentSchema": { "type": "array", "minItems": 2, "items": [ { "const": { "typ": "JWT", "alg": "HS256" } }, { "type": "object", "required": [ "iss", "exp" ], "properties": { "iss": { "type": "string" }, "exp": { "type": "integer" } } } ] } }, "trail": [ { "type": "jsonschema-2019-09", "path": [] }, { "type": "jsonschema-2019-09", "path": [ "contentSchema" ] }, { "type": "jsonschema-2019-09", "path": [ "contentSchema", "items", 0 ] }, { "type": "jsonschema-2019-09", "path": [ "contentSchema", "items", 1 ] }, { "type": "jsonschema-2019-09", "path": [ "contentSchema", "items", 1, "properties", "iss" ] }, { "type": "jsonschema-2019-09", "path": [ "contentSchema", "items", 1, "properties", "exp" ] } ] } ]