Skip to content

Commit

Permalink
Stopped draft3 from registering itself as the default validator
Browse files Browse the repository at this point in the history
Draft4 also registers itself as default, so which one ends up as default
depends on which one gets loaded first!
  • Loading branch information
iainbeeston committed Sep 8, 2014
1 parent 67a3e83 commit 9e543c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/json-schema/validators/draft3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def initialize
end

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

end
end
end

0 comments on commit 9e543c0

Please sign in to comment.