Sha256: 4314cb08a188a9cacc8174a7510983a3c49de98bcfa34604a28382490347e7c9

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

module JSON
  class Schema

    class HyperDraft4 < Draft4
      def initialize
        super
        @uri = URI.parse("http://json-schema.org/draft-04/hyper-schema#")
      end

      JSON::Validator.register_validator(self.new)
      JSON::Validator.register_default_validator(self.new)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
json-schema-2.4.1 lib/json-schema/validators/hyper-draft4.rb
json-schema-2.4.0 lib/json-schema/validators/hyper-draft4.rb