You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Attempting to post data using python client results in a error when the data structure for the data in OpenAPI spec contains combination of complex structure and anyof data type.
Python script is failing with the following exception:
pydantic_core._pydantic_core.ValidationError: 1 validation error for post_post
1
Input should be a valid dictionary or instance of Data [type=model_type, input_value=[Data(anyof_schema_1_vali...irectionalPrediction'})], input_type=list]
For further information visit https://errors.pydantic.dev/2.7/v/model_type
Bug Report Checklist
Description
Attempting to post data using python client results in a error when the data structure for the data in OpenAPI spec contains combination of complex structure and anyof data type.
openapi-generator version
7.6.0
OpenAPI declaration file content or url
https://gist.github.com/OptimeeringBigya/7130bdeb5ed6cdc474ee2d3c5897c1b4
Generation Details
java -jar openapi-generator-cli.jar generate
--input-spec ./test_openapi_json.json
--generator-name python
--output ./test_python_client
Steps to reproduce
Related issues/PRs
#16110
The text was updated successfully, but these errors were encountered: