Sha256: 7a9fa27352a2022a1aad5d65dedde7011b9f3edb45eb1c7319e54b7861875ed4

Contents?: true

Size: 1.16 KB

Versions: 6

Compression:

Stored size: 1.16 KB

Contents

# frozen_string_literal: true
module JSONSchemer
  module Draft201909
    module Vocab
      CORE = Draft202012::Vocab::CORE.dup
      CORE.delete('$dynamicAnchor')
      CORE.delete('$dynamicRef')
      CORE.merge!(
        # https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-02#section-8.2.4.2
        '$recursiveAnchor' => Core::RecursiveAnchor,
        '$recursiveRef' => Core::RecursiveRef
      )

      APPLICATOR = Draft202012::Vocab::APPLICATOR.dup
      APPLICATOR.delete('prefixItems')
      APPLICATOR.merge!(
        # https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-02#section-9.3.1
        'items' => Applicator::Items,
        'additionalItems' => Applicator::AdditionalItems,
        'unevaluatedItems' => Applicator::UnevaluatedItems,
        # https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-02#section-9.3.2.4
        'unevaluatedProperties' => Draft202012::Vocab::Unevaluated::UnevaluatedProperties
      )

      VALIDATION = Draft202012::Vocab::VALIDATION
      FORMAT = Draft202012::Vocab::FORMAT_ANNOTATION
      CONTENT = Draft202012::Vocab::CONTENT
      META_DATA = Draft202012::Vocab::META_DATA
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
json_schemer-2.3.0 lib/json_schemer/draft201909/vocab.rb
json_schemer-2.2.1 lib/json_schemer/draft201909/vocab.rb
json_schemer-2.2.0 lib/json_schemer/draft201909/vocab.rb
json_schemer-2.1.1 lib/json_schemer/draft201909/vocab.rb
json_schemer-2.1.0 lib/json_schemer/draft201909/vocab.rb
json_schemer-2.0.0 lib/json_schemer/draft201909/vocab.rb