Files
jspg/tests/fixtures/old/extensible.json
2026-02-17 17:41:54 -05:00

307 lines
7.3 KiB
JSON

[
{
"description": "[content.json] validation of string-encoded content based on media type",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"contentMediaType": "application/json"
},
"tests": []
},
{
"description": "[content.json] validation of binary string-encoding",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"contentEncoding": "base64"
},
"tests": []
},
{
"description": "[content.json] validation of binary-encoded media type documents",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"contentMediaType": "application/json",
"contentEncoding": "base64"
},
"tests": []
},
{
"description": "[content.json] validation of binary-encoded media type documents with schema",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"contentMediaType": "application/json",
"contentEncoding": "base64",
"contentSchema": {
"type": "object",
"required": [
"foo"
],
"properties": {
"foo": {
"type": "string"
}
}
}
},
"tests": []
},
{
"description": "[uniqueItems.json] uniqueItems with an array of items",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
{
"type": "boolean"
},
{
"type": "boolean"
}
],
"uniqueItems": true
},
"tests": []
},
{
"description": "[uniqueItems.json] uniqueItems=false with an array of items",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
{
"type": "boolean"
},
{
"type": "boolean"
}
],
"uniqueItems": false
},
"tests": []
},
{
"description": "[minItems.json] minItems validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"minItems": 1
},
"tests": []
},
{
"description": "[exclusiveMinimum.json] exclusiveMinimum validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"exclusiveMinimum": 1.1
},
"tests": []
},
{
"description": "[const.json] const with array",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"const": [
{
"foo": "bar"
}
]
},
"tests": []
},
{
"description": "[punc.json] punc-specific resolution and local refs",
"schema": null,
"tests": []
},
{
"description": "[propertyNames.json] propertyNames validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"propertyNames": {
"maxLength": 3
}
},
"tests": []
},
{
"description": "[not.json] collect annotations inside a 'not', even if collection is disabled",
"schema": null,
"tests": []
},
{
"description": "[items.json] non-array instances are valid",
"schema": null,
"tests": []
},
{
"description": "[items.json] Evaluated items collection needs to consider instance location",
"schema": null,
"tests": []
},
{
"description": "[minProperties.json] minProperties validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"minProperties": 1
},
"tests": []
},
{
"description": "[properties.json] properties whose names are Javascript object property names",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"__proto__": {
"type": "number"
},
"toString": {
"properties": {
"length": {
"type": "string"
}
}
},
"constructor": {
"type": "number"
}
}
},
"tests": []
},
{
"description": "[maxLength.json] maxLength validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"maxLength": 2
},
"tests": []
},
{
"description": "[dependentSchemas.json] single dependency",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"dependentSchemas": {
"bar": {
"properties": {
"foo": {
"type": "integer"
},
"bar": {
"type": "integer"
}
}
}
}
},
"tests": []
},
{
"description": "[dependentSchemas.json] dependent subschema incompatible with root",
"schema": null,
"tests": []
},
{
"description": "[exclusiveMaximum.json] exclusiveMaximum validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"exclusiveMaximum": 3.0
},
"tests": []
},
{
"description": "[minimum.json] minimum validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"minimum": 1.1
},
"tests": []
},
{
"description": "[minimum.json] minimum validation with signed integer",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"minimum": -2
},
"tests": []
},
{
"description": "[pattern.json] pattern validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"pattern": "^a*$"
},
"tests": []
},
{
"description": "[maxProperties.json] maxProperties validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"maxProperties": 2
},
"tests": []
},
{
"description": "[dependentRequired.json] single dependency",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"dependentRequired": {
"bar": [
"foo"
]
}
},
"tests": []
},
{
"description": "[required.json] required properties whose names are Javascript object property names",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"__proto__",
"toString",
"constructor"
]
},
"tests": []
},
{
"description": "[multipleOf.json] by int",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"multipleOf": 2
},
"tests": []
},
{
"description": "[patternProperties.json] patternProperties validates properties matching a regex",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"patternProperties": {
"f.*o": {
"type": "integer"
}
}
},
"tests": []
},
{
"description": "[maximum.json] maximum validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"maximum": 3.0
},
"tests": []
},
{
"description": "[minLength.json] minLength validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"minLength": 2
},
"tests": []
},
{
"description": "[maxItems.json] maxItems validation",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"maxItems": 2
},
"tests": []
}
]