Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Response Status Codes are not the Codes defined in spec #3

Open
@ItsReddi

Description

@ItsReddi

According to the OAS 3 Spec, status codes that are available are defined in
https://tools.ietf.org/html/rfc7231#section-6

The generated code is returning 422 for example.
https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/versions/3.0.2.md#httpCodes

These code is not defined in the RFC.
If i am correct it should return 400 instead.

Or for duplicate errors: 409

Metadata

Metadata

Assignees

Labels

generator-featureFunctionality missing from the generator

Projects

Status

🔢 Concept Needed

Relationships

None yet

Development

No branches or pull requests

Issue actions