This project is not covered by Drupal’s security advisory policy.

This module integrates Opis JSON Schema with Drupal.

You can validate JSON data against a JSON schema that you define. This is very useful for validating the content of JSON fields.

The module is intended for developers. You will need to create a custom module to add your schema.

For instructions, see the module's README.md.

Related modules

If you are using older versions of JSON Schema, you do not need this module; Drupal core and composer already include justinrainbow/json-schema. You only need this module if you want Opis for support for recent versions of JSON Schema (v4 and beyond).

Although the json-schema library was dormant for awhile, people are now actively working on it again and support for more recent versions of JSON Schema (currently available only with Opis) are being added.

See the discussion at #3350943: Dependency evaluation for json schema validation.

Supporting this Module

All contributions are welcome. Please submit MRs, not patches, so that the CI tests are run. Please add tests if possible.

If you post an issue and do not receive a response, feel free to contact me by private message in the Drupal Slack (ptmkenny) or via my Drupal.org contact form.

Project information

Releases