swagger-api / swagger-api/swagger-ui

Add support for extensions in response codes

Open
#4,846 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

cat: rendering type: enhancement
Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Content & configuration

Swagger/OpenAPI definition:

 /v1/somepath:
   post:
     x-rendered-extension: "30s" # This extension is rendered properly in the UI
     responses:
       202: 
         x-non-rendered-extension: true  # This extension is NOT rendered at all in the UI
Describe the solution you'd like

Currently the UI does not render extensions that are described under a response code. As per swagger documentation extension are supported in responses.

https://swagger.io/docs/specification/2-0/swagger-extensions/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Swagger UI code that renders response codes and compare it with the existing rendering of the operation-level x-rendered-extension. Use the YAML example in this issue to verify that an extension under response 202 appears in the UI; done means response-level extensions are displayed without breaking existing response documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, openapi
Domain
documentation, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.