Sha256: 780cb20558023609957f469adfbe2eb839eb99fa82fd5fd704205078d191e925

Contents?: true

Size: 601 Bytes

Versions: 9

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true

module JSONSchemer
  module Schema
    class Draft7 < Base
      SUPPORTED_FORMATS = Set[
        'date-time',
        'date',
        'time',
        'email',
        'idn-email',
        'hostname',
        'idn-hostname',
        'ipv4',
        'ipv6',
        'uri',
        'uri-reference',
        'iri',
        'iri-reference',
        'uri-template',
        'json-pointer',
        'relative-json-pointer',
        'regex'
      ].freeze

    private

      def supported_format?(format)
        SUPPORTED_FORMATS.include?(format)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
json_schemer-0.2.1 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.0 lib/json_schemer/schema/draft7.rb
json_schemer-0.1.10 lib/json_schemer/schema/draft7.rb
json_schemer-0.1.9 lib/json_schemer/schema/draft7.rb
json_schemer-0.1.8 lib/json_schemer/schema/draft7.rb
json_schemer-0.1.7 lib/json_schemer/schema/draft7.rb
json_schemer-0.1.6 lib/json_schemer/schema/draft7.rb
json_schemer-0.1.5 lib/json_schemer/schema/draft7.rb
json_schemer-0.1.4 lib/json_schemer/schema/draft7.rb