-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Closed
Copy link
Labels
Description
This issue was originally reported on Stack Overflow.
Q&A (please complete the following information)
- OS: Windows 10
- Browser: any
- Method of installation: https://editor.swagger.io
- Swagger-UI version: 3.23.0
- Swagger/OpenAPI version: OpenAPI 3.0
Content & configuration
Example Swagger/OpenAPI definition:
openapi: 3.0.2
info:
title: test
version: 1.0.0
paths:
/foo:
post:
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Foo'
responses:
201:
description: Created
components:
schemas:
Foo:
type: object
properties:
foo:
type: string
example: bar
Describe the bug you're encountering
The "Request body" section displays an empty "Examples" combobox in addition to the auto-generated examples. The issue was introduced in v. 3.23.0 by /pull/5427.
Expected behavior
No "Examples" combobox - because the request body does not have examples
.
Screenshots
MirkoTeran, gblok and crestoffgblokgblok