Module: Schematist

Defined in:
lib/schematist.rb,
lib/schematist/dsl.rb,
lib/schematist/errors.rb,
lib/schematist/schema.rb,
lib/schematist/helpers.rb,
lib/schematist/version.rb,
lib/schematist/validator.rb,
lib/schematist/json_output.rb,
lib/schematist/dsl/utilities.rb,
lib/schematist/dsl/conditionals.rb,
lib/schematist/dsl/complex_types.rb,
lib/schematist/dsl/primitive_types.rb,
lib/schematist/dsl/schema_builders.rb,
lib/schematist/dsl/conditional_builder.rb,
lib/schematist/dsl/conditional_context.rb

Defined Under Namespace

Modules: DSL, Helpers, JsonOutput Classes: Error, InvalidArrayTypeError, InvalidObjectTypeError, InvalidSchemaError, InvalidSchemaTypeError, LimitExceededError, Schema, ValidationError, Validator

Constant Summary collapse

PRIMITIVE_TYPES =
%i[string number integer boolean null].freeze
ANNOTATIONS =

Annotations describe a schema for humans and tools. They carry no validation weight.

{
  title: :title,
  description: :description,
  default: :default,
  examples: :examples,
  deprecated: :deprecated,
  read_only: :readOnly,
  write_only: :writeOnly
}.freeze
CORE_KEYWORDS =

Core keywords identify a schema and point at other schemas.

{
  id: "$id",
  anchor: "$anchor",
  comment: "$comment",
  dynamic_anchor: "$dynamicAnchor",
  dynamic_ref: "$dynamicRef",
  vocabulary: "$vocabulary"
}.freeze
VERSION =
'1.1.0'