Closed GregorGrasselli closed 2 months ago
I tried what happens when I add this to an endpoint and send a valid request. Validation succeeds, but the body_params
that are created are missing the keys specified under the oneOf
part.
Turns out this can be fixed by just not using structs in any of the schemas that have oneOf
in their top level. I think it might make sense to change the default value for struct?
in such cases.
There seems to be a bug when creating a struct from a schema that has a nested
oneOf
inside anallOf
We take a schema that seems to work correctly:
Using it to define a struct produces a struct without the keys
:a
and:b
: