Skip to content

Key segment field not found when dealing with groups #8

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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions