Skip to content

Key segment field not found when dealing with groups #8

@theplasmastorm

Description

@theplasmastorm

I have a repository that looks like this:

Structure STRTEST3
  Field STR_GRP1 (this is a group)
    Field STR3_GP1AL6 (this is a field inside the group)

Running this command:

codegen -s STRTEST3 -t ODataUnitTests -i Templates\TraditionalBridge -o TraditionalBridge.TestClient\UnitTests -tf -n TraditionalBridge.TestClient.UnitTests -e -r -lf
ERROR: When processing structure STRTEST3 key segment field STR_GRP1 was not found.

Inside LoopExpander.dbl:611, you are looking for the first fld.OriginalName == seg.Field
The issue is that everything is expanded in str.Fields, so the group does not exist inside str.Fields, and this is why STR_GRP1 cannot be found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions