Skip to content

Response payload names and comments #28

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 3 commits into from
Jun 13, 2019
Merged

Response payload names and comments #28

merged 3 commits into from
Jun 13, 2019

Conversation

chrusty
Copy link
Contributor

@chrusty chrusty commented Jun 13, 2019

  • Removed comments from generated types (they weren't always populated, plus they could have unsafe characters)
  • Changed the name of the generated response structs (prefixed with "OAPI"), to make them less likely to clash with user-defined model names

Copy link
Contributor

@deepmap-marcinr deepmap-marcinr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about not using named types for these responses?

@deepmap-marcinr
Copy link
Contributor

deepmap-marcinr commented Jun 13, 2019 via email

@chrusty
Copy link
Contributor Author

chrusty commented Jun 13, 2019

Alright, that looks like it works.

@deepmap-marcinr deepmap-marcinr merged commit 649fad1 into oapi-codegen:master Jun 13, 2019
@chrusty chrusty deleted the response_payload_names branch June 14, 2019 06:59
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
* Removed comments from generated types (not always pretty or safe)

* Changed the name of the generated responses (prefixing with OAPI)

* Using private response structs (less ugly, and guaranteed to avoid clashes)
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.

2 participants