Sha256: 7db1fcdec4cc4023dc17c673ea4ad6ffea1b161a2e9a5dcfeddcde04fa47a78a

Contents?: true

Size: 451 Bytes

Versions: 8

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

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

    private

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

Version data entries

8 entries across 8 versions & 1 rubygems

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