OpenAPITools / OpenAPITools/openapi-generator
Option to disable validation in the API clients
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
Currently, there's no way to disable validation in the API clients and therefore we cannot use the API clients to perform integration tests with the RESTful backend (e.g. the API client cannot send requests with incorrect values as the client validation rule will fail the operation)
We'll introduce an option (e.g. client_side_validation in the configuration object)
Swagger-codegen version
Latest master
Swagger declaration file content or url
Related issues
To start with, we've added this feature to the Ruby API client.
Suggest a Fix
If anyone wants to work on the enhancement, please reply to let us know.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing Ruby API client implementation and its configuration and validation paths. Determine how the proposed client_side_validation option should affect requests, then verify that disabling it allows integration tests to send invalid values while validation remains enabled by default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100