Skip to content

Preserve microflow type and cardinality inference during rebuild #352

@hjotha

Description

@hjotha

Part of #332. Related to #199. Staged in draft PR #346.

Summary

Several roundtrip validity failures come from missing type/cardinality inference in microflow rebuilds. When the builder cannot infer whether a value is an object, list, association reference, or mapped response, it can write valid-looking MDL that becomes an invalid MPR.

Expected behavior

The builder/writer should preserve MPR validity for:

  • compact association retrieve sources;
  • sort attributes that require indirect entity refs;
  • Java action return types, including generic list/object returns where inferable;
  • import mapping result cardinality;
  • list operations and add <expression> to $List values;
  • inferred return values for non-void microflows.

Current staging status

Draft PR #346 contains several type/cardinality inference fixes. These need to be extracted as focused PRs by root cause, preferably starting with cases that do not add new MDL syntax.

Validation target

Focused PRs should include synthetic unit tests for each inference case and pass make build, make lint-go, and make test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions