OpenAPITools / OpenAPITools/openapi-generator
[REQ][Powershell] Implement SkipHttpErrorCheck
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
In some cases I need the response status code of an endpoint, even when it is in the 400-500 range. Currently this is stopped by the default Invoke-WebRequest cmdlet which checks for this status code and errors by default.
Describe the solution you'd like
Specify --SkipHttpErrorCheck like you can skip Https currently in the configuration.
Describe alternatives you've considered
try / catch, but doesnt result in the desired output.
Additional context
Can implement this myself, and also cleanup the ApiClient.ps1 code a little bit so that it is readable and future proof.
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 inspecting the generated PowerShell ApiClient.ps1 and the existing configuration for skipping HTTPS checks. Trace how Invoke-WebRequest handles 400–500 responses and add support for --SkipHttpErrorCheck; done means those responses return their status codes instead of failing by default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100