lib/json-schema/validators/draft2.rb in json-schema-2.5.2 vs lib/json-schema/validators/draft2.rb in json-schema-2.6.0

- old
+ new

@@ -1,10 +1,10 @@ require 'json-schema/schema/validator' module JSON class Schema - + class Draft2 < Validator def initialize super @attributes = { "type" => JSON::Schema::TypeAttribute, @@ -32,15 +32,15 @@ 'ip-address' => IP4Format, 'ipv6' => IP6Format, 'uri' => UriFormat } @formats = @default_formats.clone - @uri = Addressable::URI.parse("http://json-schema.org/draft-02/schema#") + @uri = JSON::Util::URI.parse("http://json-schema.org/draft-02/schema#") @names = ["draft2"] @metaschema_name = "draft-02.json" end - + JSON::Validator.register_validator(self.new) end - + end end