Skip to content
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

feat(gen): add the ability to specify a prefix for internal structures #1057

Closed
wants to merge 4 commits into from
Closed

feat(gen): add the ability to specify a prefix for internal structures #1057

wants to merge 4 commits into from

Conversation

AlexanderMint
Copy link
Contributor

If a schema is already described in Swagger, for example with the name Route, then when generating the code there will be 2 structures with the same name Route

This change adds the --internal-prefix option and the ability to easily set the internal prefix for the Server, Client, Route (and WebhookHook) structures.

@codecov
Copy link

codecov bot commented Sep 24, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (9d1e05a) 72.20% compared to head (13e358d) 72.21%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1057   +/-   ##
=======================================
  Coverage   72.20%   72.21%           
=======================================
  Files         192      192           
  Lines       15027    15031    +4     
=======================================
+ Hits        10850    10854    +4     
  Misses       3641     3641           
  Partials      536      536           
Files Changed Coverage Δ
gen/ir/operation.go 82.97% <ø> (ø)
gen/options.go 16.27% <ø> (ø)
gen/gen_operation.go 89.33% <100.00%> (+0.44%) ⬆️
gen/write.go 89.71% <100.00%> (+0.04%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AlexanderMint
Copy link
Contributor Author

AlexanderMint commented Sep 28, 2023

Can I have some feedback?

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