apple / apple/swift-openapi-generator

DecodingError should return 4xx instead of 500

Open
#717 4 comments 3 reactions 1 assignee Claimed by @gayathrisairam View on GitHub
kind/enhancement size/S
Dominant language
Swift
Stars
2k
Forks
182
Avg merge
13h 28m
Merged PRs (30d)
5

Description

### Motivation

If there is an error in decoding a request, a 500 is thrown currently. This should be a 4xx status code.

### Proposed solution

Conform `DecodingError` to `HTTPResponseConvertible` protocol.

### Alternatives considered

_No response_

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.