Skip to content

OpenAPI: Quote HTTP response status code keys - #17839

Open
yangshangqing95 wants to merge 1 commit into
apache:mainfrom
yangshangqing95:fix/openapi-http-code
Open

OpenAPI: Quote HTTP response status code keys#17839
yangshangqing95 wants to merge 1 commit into
apache:mainfrom
yangshangqing95:fix/openapi-http-code

Conversation

@yangshangqing95

Copy link
Copy Markdown
Contributor

Description

Quotes HTTP response status code keys, including numeric and wildcard responses such as '200' and '5XX'.

The OpenAPI 3.1.1 Responses Object specification requires response status code keys to be enclosed in quotation marks for JSON and YAML compatibility.

This change does not modify any response definitions or schemas.

@gaborkaszab gaborkaszab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure this adds any extra value to the spec TBH.

@uros-b uros-b left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @yangshangqing95 - seems like a correct and complete spec compliance fix, will leave up to REST/OpenAPI spec experts to examine further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants