When generating from Open API with anyOf we got Python SDK like name_or_index: Optional[str] which then switched to name_or_index: Optional[int] in a subsequent update. It should be name_or_index: Optional[Union[str, int]].
I think this is not a problem in Python SDK generator but in OpenAPI importer because the REST API docs page also shows:
Describe the bug
When generating from Open API with
anyOf
we got Python SDK likename_or_index: Optional[str]
which then switched toname_or_index: Optional[int]
in a subsequent update. It should bename_or_index: Optional[Union[str, int]]
.I think this is not a problem in Python SDK generator but in OpenAPI importer because the REST API docs page also shows:
To reproduce
Expected behavior
We get union of integer and string in SDKs and in the docs.
Of note, somewhat works fine for an array of items:
But it is also wrong because it should show list of unions, not a union.
Yet in the response object where
columns
arerequired
it does work correctly:Screenshots
See above
CLI Version
0.39.1
Additional context
None