Skip to content

Comments

gen: fix partial generation of embedded structs#513

Merged
chrisseto merged 1 commit intomainfrom
chris/p/gen-partial-embed
Mar 11, 2025
Merged

gen: fix partial generation of embedded structs#513
chrisseto merged 1 commit intomainfrom
chris/p/gen-partial-embed

Conversation

@chrisseto
Copy link
Contributor

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.

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.
@chrisseto chrisseto merged commit 1ec3f63 into main Mar 11, 2025
13 of 14 checks passed
@RafalKorepta RafalKorepta deleted the chris/p/gen-partial-embed branch March 11, 2025 20:52
@chrisseto
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
release/v2.3.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants