class Lutaml::Model::KeyValueTransform
def generate_remaining_mappings_for_value(child_mappings, value, format)
If any additional mappings (e.g., { name: :key, id: :identifier })
the :key mapping (e.g., { name: :key }) is provided.
Generates remaining child mappings for all attributes when only
def generate_remaining_mappings_for_value(child_mappings, value, format) return if child_mappings.values != [:key] klass = value.first.class mappings = klass.mappings_for(format) klass.attributes.each_key do |name| next if Utils.string_or_symbol_key?(child_mappings, name) child_mappings[name.to_sym] = child_mapping_for(name, mappings) end end