It looks like while AnyOf is supported by OpenAPI spec, it does not work well in the OpenAPI generator server we are using.
Solution:
- Warn users of the types that are not going to be supported.
- Create manually the missing union classes for the spec (but for data types it's difficult to know).
- Use another server implementation where this works (e.g., Java). But this means we have to port all our code from Python to Java, which is not trivial.
Better solution: Open an issue in OpenAPI generator and wait until they fix it.
It looks like while AnyOf is supported by OpenAPI spec, it does not work well in the OpenAPI generator server we are using.
Solution:
Better solution: Open an issue in OpenAPI generator and wait until they fix it.