lib/jimmy/schema_creation.rb in jimmy-0.4.7 vs lib/jimmy/schema_creation.rb in jimmy-0.4.8
- old
+ new
@@ -46,10 +46,10 @@
"/#{schema.name}#/definitions/#{id}"
end
def ref(*args, uri, &block)
handler = SchemaCreation.handlers[self.class]
- instance_exec(Reference.new(uri, &block), *args, &handler) if handler
+ instance_exec(Reference.new(uri, args.delete(:nullable), &block), *args, &handler) if handler
end
end
module DefiningMethods
include MetadataMethods