Skip to content

fix: type hint for discriminator types#1745

Closed
mweibel wants to merge 1 commit into
oapi-codegen:mainfrom
helio:fix-1668-discriminator-union-type
Closed

fix: type hint for discriminator types#1745
mweibel wants to merge 1 commit into
oapi-codegen:mainfrom
helio:fix-1668-discriminator-union-type

Conversation

@mweibel

@mweibel mweibel commented Sep 5, 2024

Copy link
Copy Markdown

fixes #1668

❓ I'd need help writing the appropriate test code. I haven't found the best way to make sure this works and continues to works in the future yet and would appreciate some help. I tried adding a check (using parser.ParseFile) in codegen/codegen_test.go to make sure the generated code is parseable but wasn't yet able to make it work.

@mweibel mweibel requested a review from a team as a code owner September 5, 2024 07:34
@jamietanna jamietanna added this to the v2.5.0 milestone Sep 5, 2024
@mweibel

mweibel commented Sep 18, 2024

Copy link
Copy Markdown
Author

@jamietanna would you be able to review this? and maybe point me in the direction on writing tests for this particular case

@jamietanna

Copy link
Copy Markdown
Member

I'll try and have a look once I've got the v2.4.0 release backlog out ☺

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.

Union tmpl generates wrong code when using non string type

2 participants