lib/marty/json_schema.rb in marty-8.2.0 vs lib/marty/json_schema.rb in marty-8.3.1
- old
+ new
@@ -8,10 +8,10 @@
values = nil
path = '#/' + frag.join('/')
begin
cs = curr_schema.schema['pg_enum']
enum = cs.constantize
- values = enum::VALUES
+ values = enum.values
rescue StandardError => e
msg = "The property '#{path}': '#{cs}' is not a pg_enum class"
validation_error(pro, msg, frag, curr_schema, self, opt[:record_errors])
end
if values && !values.include?(data)