-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema type Object with OneOf #64
Comments
It deserializes like this:
|
It doesn't get deserialised into Any, it gets deserialised into Object |
you're right (of course). my test program was flawed and I made a hasty conclusion. Sorry! |
I guess I don't really understand this then, so the schema type we have in rust does not correlate to the openapi type field? |
I'm not sure why exactly this design choice was made in I'm going to build a 3.1 crate at some point and will represent the |
Another crate I had looked at also does that (lumped things together), though also this way with different types seemed better to me as well :D |
Yeah that would be my intention. |
Hi, I seem to have hit a little snag with this kind of schema:
SchemaKind::Type
andSchemaKind::OneOf
are different derivations so I guess this is not currently supported?The text was updated successfully, but these errors were encountered: