Skip to content

Use type alias for strict response types - #1231

Closed
dan-j wants to merge 2 commits into
oapi-codegen:mainfrom
dan-j:970-strict-response-type-alias
Closed

dan-j wants to merge 2 commits into
oapi-codegen:mainfrom
dan-j:970-strict-response-type-alias

Conversation

@dan-j

@dan-j dan-j commented Sep 3, 2023

Copy link
Copy Markdown

See #970...

@gerhardwagner suggested a fix which also works for me, so I've created a quick PR. I'm not familiar with the actual codebase so not sure if tests are going to pass, or how to add tests to get this merged.

I don't have a lot of time to go digging so any hints are appreciated and I am happy to contribute tests.

@gerhardwagner

Copy link
Copy Markdown

would like to see this merged 🙃

@dan-j

dan-j commented May 4, 2024

Copy link
Copy Markdown
Author

Just added a comment to the issue #970 which might prevent this from being merged as-is as it could break other people's implementations

@mromaszewicz

Copy link
Copy Markdown
Member

Thank you for contributing, and I'm very sorry for taking so long to get to this PR. At this point, the code has changed so much that it's no longer relevant because strict response types already conditionally use type aliases — aliases are used when the schema is a $ref and not an external ref.

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.

3 participants