Sha256: 047e3a438d0f3c003683890e0c9484635fdbd7d7d481269f32207b0d3b93c1ac

Contents?: true

Size: 600 Bytes

Versions: 28

Compression:

Stored size: 600 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

28 entries across 28 versions & 1 rubygems

Version Path
json_schemer-1.0.3 lib/json_schemer/schema/draft7.rb
json_schemer-1.0.2 lib/json_schemer/schema/draft7.rb
json_schemer-1.0.1 lib/json_schemer/schema/draft7.rb
json_schemer-1.0.0 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.25 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.24 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.23 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.22 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.21 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.20 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.19 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.18 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.17 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.16 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.15 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.14 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.13 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.12 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.11 lib/json_schemer/schema/draft7.rb
json_schemer-0.2.10 lib/json_schemer/schema/draft7.rb