lib/schemacop/v3/node.rb in schemacop-3.0.15 vs lib/schemacop/v3/node.rb in schemacop-3.0.16

- old
+ new

@@ -28,9 +28,11 @@ klass = resolve_class(type) fail "Could not find node for type #{type.inspect}." unless klass node = klass.new(**options, &block) + options = Schemacop.v3_default_options.slice(*klass.allowed_options).merge(options) + if options.delete(:cast_str) format = NodeRegistry.name(klass) one_of_options = { required: options.delete(:required), treat_blank_as_nil: true,