-
Couldn't load subscription status.
- Fork 9.2k
Open
Description
Q&A
- OS: macOS
- Browser: chrome
- Version: 121.0.6167.139
- Method of installation: dist, cloud
- Swagger-UI version: any recent version, (checked from 5.2 to 5.10.3)
- Swagger/OpenAPI version: 3.1.0
A simple example Swagger/OpenAPI definition:
openapi: 3.0.3
info:
title: Example
version: 0.0.1
paths:
/api/v1/example:
get:
operationId: example
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/Node'
components:
schemas:
Node:
required:
- id
type: object
properties:
id:
$ref: '#/components/schemas/NodeId'
name:
type: string
parentId:
$ref: '#/components/schemas/NodeId'
NodeId:
type: integer
description: Internal ID of a Node
format: int32Describe the bug you're encountering
When switching openapi: 3.0.3 to 3.1.0 renderer no more displays references with their names.
Expected behavior
Referenced types are shown with their name so it's easy to see reused components
To reproduce...
Use a provided example and compare results between 3.0.3 and 3.1.0
Actual behavior
Referenced types are inlined without name (e.g. NodeId in provided simple example) - hard to see common components when using complex schemas.
Screenshots

hkosova, Krakozaber, mark-roy, plesingr-aeb, katepol and 4 more
Metadata
Metadata
Assignees
Labels
No labels