OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.86k stars 6.59k forks source link

Disable type checking (python) #19330

Open Coder101-byte opened 3 months ago

Coder101-byte commented 3 months ago

Is your feature request related to a problem? Please describe.

If my api's response does not match the schema described in the spec file, a validation error is thrown and I am unable to view the response. I thought setting configuration.client_side_validation = False would fix this issue, but it does not.

Describe the solution you'd like

I would like set a --skip_validation flag when generating the sdk, set configuration.skip_validation = False, or have configuration.validate_schema default to false. When this is set, my api response should return the entire object, including any additional fields not specified in the schema. If this isn't possible, the api response should at least return the fields specified by the schema without throwing a validation error.

Coder101-byte commented 3 months ago

4168 also references this issue