[Unreleased]

[0.6.2] - 2025-12-09

Fixed

  • The item_schema_options is now properly passed to the Array property.

[0.6.1] - 2025-10-13

Fixed

  • Mapping for collections (array of objects). (#15, @CiTroNaK)

[0.6.0] - 2025-07-18

Breaking Changes

  • BREAKING: Switching to slash notation for mapping to improve consistency with how properties are referenced in JSON Schema. Before: example.nested.property, now: example/nested/property. (#12, @CiTroNaK)

New Features

  • Add support for enum properties. (#13, @CiTroNaK)
  • Add support for inverted mapping, that can be used to map internal structure to external representation (e.g., for errors). (#10, @CiTroNaK)
  • Add support for constants in the schema, allowing to define fixed values for properties. (#11, @CiTroNaK)

[0.5.0] - 2025-07-01

Fixed

  • Handling with_options defaults like required and nullable.

New Features

[0.4.0] - 2025-06-28

Breaking Changes

  • BREAKING: Renaming validation method from validate_schema to valid_schema? to better reflect its purpose.
  • BREAKING: The validate_schema now returns an array of errors instead of a boolean value, allowing for more detailed error reporting.

New Features

  • Add support for custom field types.

Fixed

  • Loading the gem in another project with zeitwerk now works correctly.
  • Fix schema validation after json_schemer refactoring.

[0.3.0] - 2025-06-25

Breaking Changes

  • BREAKING: Replace json-schema gem with json_schemer for support of newer JSON Schema specifications (set the lasest by default).
  • BREAKING: Schema and validation schema now uses string keys instead of symbols.

Added

  • Allow insert default values for properties when validation is used.

[0.2.1] - 2025-06-22

  • Bump the gem to use Ruby 3.2 as the minimum version.

[0.2.0] - 2025-06-22

  • Initial support for versions, fields, collections, and references.

[0.1.0] - 2025-06-14

  • Initial release