Skip to content

Multivalued inlined populated_from paths don't fan out per-item to a matching class_derivation #265

Description

@amc-corey-cox

Follow-up to #247 (which lands slot-level inline dot-path traversal for scalar leaves).

A multivalued inlined path like populated_from: dataset.dataTable should fan out: each item in the list is mapped through the class_derivation whose target matches the slot's range, EML-style:

class_derivations:
  SchemaDefinition:
    populated_from: EMLDocument
    slot_derivations:
      classes:
        populated_from: dataset.dataTable   # multivalued inline list
  ClassDefinition:                            # should auto-fire per dataTable item
    populated_from: DataTable
    slot_derivations:
      name:
        populated_from: entityName

Today no dispatch exists for this. _derive_nested_objects only handles slot derivations that embed class_derivations: directly, and maps once per nested CD on a single (joined) row — it does not iterate a list of source items. This needs new range-matched, per-item fan-out orchestration on top of the slot-level inline traversal from #247.

Slot-level inline traversal (#247) raises a clear diagnostic naming the multivalued segment and pointing here, rather than silently returning None, until this lands.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions