Skip to content
This repository has been 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 opened this issue Oct 23, 2019 · 1 comment
Open

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

ItsReddi opened this issue Oct 23, 2019 · 1 comment
Assignees
Labels
generator-feature Functionality missing from the generator
Milestone

Comments

@ItsReddi
Copy link

ItsReddi commented Oct 23, 2019

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

@cebe
Copy link
Owner

cebe commented Oct 23, 2019

it should return the code you specify in your api description, but currently it simply uses Yii defaults.

@cebe cebe added the generator-feature Functionality missing from the generator label Oct 23, 2019
@cebe cebe assigned cebe and unassigned cebe Oct 23, 2019
@cebe cebe added this to the 2.0 milestone Aug 3, 2020
cebe pushed a commit that referenced this issue Jan 5, 2023
@cebe cebe self-assigned this Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
generator-feature Functionality missing from the generator
Projects
Status: 🔢 Concept Needed
Development

No branches or pull requests

2 participants