Skip to content
Playground

JSON Schema

Currently we only support JSON Schema Draft-07.

Details and limitations

  • Library only supports local definition referencing. The value in the $ref keyword should be a JSON Pointer in URI fragment identifier format.
  • $schema keyword is ignored
  • Some keywords are only involved in validation.
    • contains
    • patternProperties
    • propertyNames
    • not
  • exclusiveMaximum, exclusiveMinimum are not currently passed to input elements.
  • writeOnly, contentMediaType and contentEncoding has no special meaning.
  • additionalItems: true will be treated as no additional items allowed.
  • additionalProperties: false produces incorrect schemas when used with schema dependencies.
  • Properties declared inside the anyOf/oneOf should not overlap with properties “outside” of the anyOf/oneOf.
  • The allOf keyword uses json-schema-merge-allof to merge subschemas.

String formats

Some string formats has special meaning:

  • date-time - datetime-local input type
  • uri - url input type
  • color, date, time, email - corresponding input type
  • data-url - file field