X Tutup
Skip to content

Response payload names and comments#28

Merged
deepmap-marcinr merged 3 commits intooapi-codegen:masterfrom
chrusty:response_payload_names
Jun 13, 2019
Merged

Response payload names and comments#28
deepmap-marcinr merged 3 commits intooapi-codegen:masterfrom
chrusty:response_payload_names

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

X Tutup