lib/dry/schema/extensions/json_schema/schema_compiler.rb in dry-schema-1.9.1 vs lib/dry/schema/extensions/json_schema/schema_compiler.rb in dry-schema-1.9.2
- old
+ new
@@ -45,11 +45,11 @@
},
uuid_v5?: {
pattern: "^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$"
},
gt?: {exclusiveMinimum: IDENTITY},
- gteq?: {mininum: IDENTITY},
+ gteq?: {minimum: IDENTITY},
lt?: {exclusiveMaximum: IDENTITY},
lteq?: {maximum: IDENTITY},
odd?: {type: "integer", not: {multipleOf: 2}},
even?: {type: "integer", multipleOf: 2}
}.freeze
@@ -86,10 +86,10 @@
public_send(:"visit_#{meth}", rest, opts)
end
# @api private
def visit_set(node, opts = EMPTY_HASH)
- target = (key = opts[:key]) ? self.class.new : self
+ target = (key = opts[:key]) ? self.class.new(loose: loose?) : self
node.map { |child| target.visit(child, opts) }
return unless key