Sha256: 848503269c58a3ce7d0c5e3d036bf48ef60b4146cc540292335b7a89f44925a4

Contents?: true

Size: 985 Bytes

Versions: 6

Compression:

Stored size: 985 Bytes

Contents

# frozen_string_literal: true
module JSONSchemer
  module Draft7
    module Vocab
      ALL = Draft201909::Vocab::CORE.dup
      ALL.delete('$recursiveAnchor')
      ALL.delete('$recursiveRef')
      ALL.delete('$vocabulary')
      ALL.delete('$anchor')
      ALL.delete('$defs')
      ALL.merge!(Draft201909::Vocab::APPLICATOR)
      ALL.delete('dependentSchemas')
      ALL.delete('unevaluatedItems')
      ALL.delete('unevaluatedProperties')
      ALL.merge!(Draft201909::Vocab::VALIDATION)
      ALL.delete('dependentRequired')
      ALL.delete('maxContains')
      ALL.delete('minContains')
      ALL.merge!(Draft202012::Vocab::FORMAT_ANNOTATION)
      ALL.merge!(Draft201909::Vocab::META_DATA)
      ALL.delete('deprecated')
      ALL.merge!(
        '$ref' => Validation::Ref,
        'additionalItems' => Validation::AdditionalItems,
        'contentEncoding' => Validation::ContentEncoding,
        'contentMediaType' => Validation::ContentMediaType
      )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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