lib/json-schema/attributes/enum.rb in json-schema-1.0.0 vs lib/json-schema/attributes/enum.rb in json-schema-1.0.1

- old
+ new

@@ -1,10 +1,10 @@ module JSON class Schema class EnumAttribute < Attribute def self.validate(current_schema, data, fragments, validator, options = {}) if !current_schema.schema['enum'].include?(data) - message = "The property '#{build_fragment(fragments)}' did not match one of the following values:" + message = "The property '#{build_fragment(fragments)}' value #{data.inspect} did not match one of the following values:" current_schema.schema['enum'].each {|val| if val.is_a?(NilClass) message += " null," elsif val.is_a?(Array) message += " (array)," \ No newline at end of file