OneOf doesn't produce methods for deserializing #965
Unanswered
EmilioMirasola
asked this question in
Q&A
Replies: 1 comment
-
We are also coming up against this problem. Seems there is a bug in the RESPONSE logic that is being addressed, I kind of assume that it's the same for the request logic too |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a problem where oneOf does not produce the helper methods I'm expecting.

My request body definition is as follows:
My components are as follows:

However, this results in the following code:

Where there aren't any methods on any of the types.
The guide states that given OneOf on components Dog/Cat, methods for parsing body as either are generated.
Do I have an issue with my YAML, my codegen configuration, or is there a library issue?
Beta Was this translation helpful? Give feedback.
All reactions