lib/schemacop/v3/node.rb in schemacop-3.0.21 vs lib/schemacop/v3/node.rb in schemacop-3.0.22

- old
+ new

@@ -26,12 +26,11 @@ def self.create(type = self, **options, &block) 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) + node = klass.new(**options, &block) if options.delete(:cast_str) format = NodeRegistry.name(klass) one_of_options = { required: options.delete(:required),