You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classKlin < Lutaml::Model::Serializableattribute:manufacturer,:stringxmldomap_element"manufacturer",to: :manufacturerendendclassGlassKlin < Klinxmldomap_element"make",to: :manufacturerremove_map_element"manufacturer"# is this the best way to delete a mapping?endend
The text was updated successfully, but these errors were encountered:
ronaldtse
changed the title
Support inheriting and modifying selective elements in xml_mapping
Inheritance: support retaining existing attributes and selective overriding
Sep 11, 2024
When inheriting a Serializable class, sometimes we want to retain the existing mappings, and add additional attributes.
Maybe we use a
xml(keep: true) do
syntax (by default true), e.g.{format}(keep: false) do
.Case 1: add attribute and element
Case 2: modify attribute and element
Case 3: modify mapping
The text was updated successfully, but these errors were encountered: