Skip to content

Fix handling of result types used in bodies #3559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 12, 2024
Merged

Conversation

raphael
Copy link
Member

@raphael raphael commented Jul 12, 2024

Only Collection result types need to be added to the generated roots. Adding other result types to it causes their DSL to run twice and therefore their views to get defined twice which causes the generation to fail.

raphael added 2 commits July 11, 2024 18:04
Only Collection result types need to be added to the generated roots.
Adding other result types to it causes their DSL to run twice and therefore
their views to get defined twice which causes the generation to fail.
The `buildHTTPResponseBody` and `buildHTTPRequestBody` functions already removed the `struct:pkg:path` meta when creating new types.
They also need to remove the meta when renaming existing types as the renamed types live under the
standard `gen` directory.
@raphael raphael merged commit 10d0665 into v3 Jul 12, 2024
9 checks passed
@raphael raphael deleted the fix_body_collection_of branch July 12, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant