Sha256: 014fde8f7a3f40fbaec9573a013cb78852a57e1928e2f6d3686aafdf0ee0cd01

Contents?: true

Size: 496 Bytes

Versions: 6

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true
module JSONSchemer
  module Draft4
    module Vocab
      ALL = Draft6::Vocab::ALL.dup
      ALL.transform_keys! { |key| key == '$id' ? 'id' : key }
      ALL.delete('contains')
      ALL.delete('propertyNames')
      ALL.delete('const')
      ALL.delete('examples')
      ALL.merge!(
        'type' => Validation::Type,
        'exclusiveMaximum' => Validation::ExclusiveMaximum,
        'exclusiveMinimum' => Validation::ExclusiveMinimum
      )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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