talira

Ruby JSON Schema Validator

Validate JSON against JSON Schema in Ruby

open sourceMITfree

The json-schema gem validates JSON objects in Ruby against a JSON Schema conforming to Draft 6, with legacy support for Drafts 1 to 4. It's maintained by Vox Pupuli.

Problems it solves

  • validate a JSON payload against a schema in Ruby
  • check API responses match a JSON Schema in Ruby tests
  • validate configuration files with JSON Schema in Ruby

Features

  • JSON Schema Draft 6 validation
  • legacy Drafts 1 to 4

Alternatives

The same job

These do what Ruby JSON Schema Validator does.

  1. json_schemer JSON Schema validator. Supports drafts 4, 6, 7, 2019-09, 2020-12, OpenAPI 3.0, and OpenAPI 3.1.
  2. check-jsonschema JSON Schema validation CLI and pre-commit hooks

Compare Ruby JSON Schema Validator with the top 3