lib/lutaml/model/key_value_mapping.rb in lutaml-model-0.3.15 vs lib/lutaml/model/key_value_mapping.rb in lutaml-model-0.3.16
- old
+ new
@@ -11,19 +11,21 @@
def map(
name,
to: nil,
render_nil: false,
+ render_default: false,
with: {},
delegate: nil,
child_mappings: nil
)
validate!(name, to, with)
@mappings << KeyValueMappingRule.new(
name,
to: to,
render_nil: render_nil,
+ render_default: render_default,
with: with,
delegate: delegate,
child_mappings: child_mappings,
)
end