-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
Description
| Q | A |
|---|---|
| Bug or feature request? | Bug |
| Which Swagger/OpenAPI version? | 2.0 |
| Which Swagger-UI version? | 3.13.5 (does not happen on previous versions) |
| How did you install Swagger-UI? | swagger-ui-dist, or use online editor (editor.swagger.io) |
| Which browser & version? | Chrome@latest |
| Which operating system? | Windows 8 |
Demonstration API definition
I've narrowed it down to the following minimum spec:
swagger: '2.0'
info:
version: v1
title: Foo
basePath: /v1/foo
produces:
- application/json
parameters:
testHeader:
name: test-header
description: some request header
type: string
in: header
required: false
paths:
'/':
parameters:
- $ref: '#/parameters/testHeader'
get:
responses:
200:
description: Successful response
schema:
type: object
properties:
bar:
type: stringProblem doesn't happen if either the produces or the header parameter is moved into the get method.
Configuration (browser query string, constructor, config.yaml)
No specific config
Expected Behavior
Spec to be rendered and UI working
Current Behavior
Entire UI freezes when expanding the path on the swagger UI