UNPKG

@adobe/jsonschema2md

Version:

Validate and document complex JSON Schemas the easy way.

149 lines (117 loc) 5.34 kB
# JSON Schema Spec Coverage Report This report lists the keywords of the JSON Schema spec that are covered in the tests. The overall coverage is 84% ## The JSON Schema Core Vocabulary Coverage for [The JSON Schema Core Vocabulary](https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.8.1) is 55%. | Keyword | Supported | | :----------------- | --------- | | `$anchor` | No | | `$comment` | Yes | | `$defs` | Yes | | `$id` | Yes | | `$recursiveAnchor` | No | | `$recursiveRef` | No | | `$ref` | Yes | | `$schema` | Yes | | `$vocabulary` | No | ## A Vocabulary for Applying Subschemas Coverage for [A Vocabulary for Applying Subschemas](https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.9) is 58%. | Keyword | Supported | | :---------------------- | --------- | | `additionalItems` | Yes | | `additionalProperties` | Yes | | `allOf` | Yes | | `anyOf` | Yes | | `contains` | Yes | | `dependentSchemas` | No | | `else` | No | | `if` | No | | `items` | Yes | | `not` | Yes | | `oneOf` | Yes | | `patternProperties` | Yes | | `properties` | Yes | | `propertyNames` | No | | `then` | No | | `unevaluatedItems` | No | | `unevaluatedProperties` | No | ## Validation Keywords for Any Instance Type Coverage for [Validation Keywords for Any Instance Type](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.1) is 100%. | Keyword | Supported | | :------ | --------- | | `const` | Yes | | `enum` | Yes | | `type` | Yes | ## Validation Keywords for Numeric Instances Coverage for [Validation Keywords for Numeric Instances](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.2) is 100%. | Keyword | Supported | | :----------------- | --------- | | `exclusiveMaximum` | Yes | | `exclusiveMinimum` | Yes | | `maximum` | Yes | | `minimum` | Yes | | `multipleOf` | Yes | ## Validation Keywords for Strings Coverage for [Validation Keywords for Strings](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.3) is 100%. | Keyword | Supported | | :---------- | --------- | | `maxLength` | Yes | | `minLength` | Yes | | `pattern` | Yes | ## Validation Keywords for Arrays Coverage for [Validation Keywords for Arrays](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.4) is 100%. | Keyword | Supported | | :------------ | --------- | | `maxContains` | Yes | | `maxItems` | Yes | | `minContains` | Yes | | `minItems` | Yes | | `uniqueItems` | Yes | ## Validation Keywords for Objects Coverage for [Validation Keywords for Objects](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.5) is 75%. | Keyword | Supported | | :------------------ | --------- | | `dependentRequired` | No | | `maxProperties` | Yes | | `minProperties` | Yes | | `required` | Yes | ## Defined Formats Coverage for [Defined Formats](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.7.3) is 100%. | Keyword | Supported | | :---------------------- | --------- | | `date` | Yes | | `date-time` | Yes | | `duration` | Yes | | `email` | Yes | | `hostname` | Yes | | `idn-email` | Yes | | `idn-hostname` | Yes | | `ipv4` | Yes | | `ipv6` | Yes | | `iri` | Yes | | `iri-reference` | Yes | | `json-pointer` | Yes | | `regex` | Yes | | `relative-json-pointer` | Yes | | `time` | Yes | | `uri` | Yes | | `uri-reference` | Yes | | `uri-template` | Yes | | `uuid` | Yes | ## A Vocabulary for the Contents of String-Encoded Data Coverage for [A Vocabulary for the Contents of String-Encoded Data](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.8) is 100%. | Keyword | Supported | | :----------------- | --------- | | `contentEncoding` | Yes | | `contentMediaType` | Yes | | `contentSchema` | Yes | ## A Vocabulary for Basic Meta-Data Annotations Coverage for [A Vocabulary for Basic Meta-Data Annotations](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.9) is 100%. | Keyword | Supported | | :------------ | --------- | | `default` | Yes | | `deprecated` | Yes | | `description` | Yes | | `examples` | Yes | | `readOnly` | Yes | | `title` | Yes | | `writeOnly` | Yes |