oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

feat: allow not generating union types' `As...` or `From...`

Open jamietanna opened this issue 1 year ago • 3 comments

Via https://github.com/oapi-codegen/oapi-codegen/issues/1668

That being said, I'm not sure what the user-facing benefit of this would be, if it's then not possible to retrieve the fields? (unless we have #1680)

This would be a new output option, which would be documented through the JSON Schema.

jamietanna avatar Jul 03 '24 08:07 jamietanna

@mweibel how would you be looking at consuming the generated types, if not via the As... methods?

jamietanna avatar Jul 03 '24 08:07 jamietanna

@jamietanna can you elaborate? We didn't use it before already, so I'm not sure what changed?

mweibel avatar Jul 29 '24 07:07 mweibel

can be closed as #1789 should fix this issue.

mweibel avatar Oct 04 '24 12:10 mweibel