Skip to content

Comments

[release/v2.3.x] gen: fix partial generation of embedded structs#523

Merged
chrisseto merged 1 commit intorelease/v2.3.xfrom
backport/release/v2.3.x/pr-513
Mar 12, 2025
Merged

[release/v2.3.x] gen: fix partial generation of embedded structs#523
chrisseto merged 1 commit intorelease/v2.3.xfrom
backport/release/v2.3.x/pr-513

Conversation

@chrisseto
Copy link
Contributor

Backport

This will backport the following commits from main to release/v2.3.x:

Questions ?

Please refer to the Backport tool documentation

Prior to this commit `gen partial` would incorrectly handle embedded structs by
adding them as top level fields.

The issue was due to using a limited method of creating the underlying
`types.Field`.

This commit corrects the generation and adds a regression test.

(cherry picked from commit 1ec3f63)
@chrisseto chrisseto merged commit b3909d2 into release/v2.3.x Mar 12, 2025
13 checks passed
@chrisseto chrisseto deleted the backport/release/v2.3.x/pr-513 branch March 12, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants