Skip to content

Swagger-UI 5.1.0: Example Value box displayed for Response Object with only description. #8975

Open
@Teraskull

Description

@Teraskull

Q&A (please complete the following information)

  • Swagger-UI version: 5.1.0
  • Swagger/OpenAPI version: OpenAPI 3.1

Looks similar to #5453.
Does not happen on Swagger-UI 4.

If I have a response object like this, with only description, it shows an Example Value box with "string" value:

401:
    description: Unauthorized

image

On Swagger-UI 4 only the description is visible, without the Example Value box.

Not sure if this is a regression or an intended feature.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions