Closed domesticmouse closed 4 days ago
The source of this appears to be: https://github.com/tiangolo/fastapi/pull/4806
I have the same problem. Any idea on how to fix this? I can do it manually as a temporary fix but I would like to have an example of how the code should look like.
To me it looks like the OpenAPI Dart generator doesn't support anyOf: https://openapi-generator.tech/docs/generators/dart#schema-support-feature
As such, this is not an issue with this repo, but rather https://github.com/OpenAPITools/openapi-generator
I know it has been a while but in case anyone else stumbles on this, Anyof
support has been added to the dio
generator.
I have a OpenAPI spec that includes the following component that confuses the
openapi_generator
to no end:This winds up with a
AnyOfstringinteger
which isn't generated.