RubyGems Navigation menu

katachi 0.0.2.0

Description

A tool for describing and validating objects as intuitively as possible. Easier to read and write than JSON Schema, and more powerful than a simple hash comparison.

Example usage:

shape = {
    :$uuid => {
        email: :$email,
        first_name: String,
        last_name: String,
        preferred_name: AnyOf[String, nil],
        admin_only_information: AnyOf[{Symbol => String}, :$undefined],
        Symbol => Object,
    },
}
expect(api_response.body).to have_shape(shape)

Gemfile:
=

install:
=

Versions:

  1. 0.0.2.0 March 19, 2025 (22 KB)
  2. 0.0.1.4 March 18, 2025 (22 KB)
  3. 0.0.1.3 March 18, 2025 (21.5 KB)
  4. 0.0.1.2 March 18, 2025 (21.5 KB)
  5. 0.0.1.1 March 18, 2025 (21.5 KB)
Show all versions (7 total)

Owners:

Pushed by:

GitHub

Authors:

  • Joel Tannas

SHA 256 checksum:

=

Provenance:

Total downloads 1,113

For this version 209

Version Released:

License:

MIT

Required Ruby Version: >= 3.2.0, < 3.5

New versions require MFA: true

Version published with MFA: true

Links: