-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allOf in $ref schema doesn't render properly #2765
Comments
I'm having same issue. Is there any workaround? |
I have the same problem. @karlismelderis did you figure out this issue? An example of document: openapi: 3.0.1
info:
version: 1.0.0
title: API
description: Test
components:
schemas:
ItemSimple:
type: object
properties:
id:
type: string
GroupTitle:
type: object
properties:
title:
type: string
GroupListItem:
type: object
properties:
merged:
allOf:
- $ref: '#/components/schemas/ItemSimple'
- type: object
properties:
extra:
type: string
Group:
type: object
properties:
title:
$ref: '#/components/schemas/GroupTitle'
list:
type: array
items:
$ref: '#/components/schemas/GroupListItem'
paths:
/path:
get:
summary: Some path
responses:
200:
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Group' If |
Moving paths above components seem to help. https://stackoverflow.com/questions/69906612/swagger-example-response-not-respecting-nested-allof Probably swagger-ui is a better repo for this bug, it's rendering of documentation that is buggy, not the editor. |
Q&A (please complete the following information)
used online version: https://editor.swagger.io/
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
if $ref schema has allOf in it final schema is not rendered correctly. UI shows empty object and renders as string.
Screenshots
Additional context or thoughts
The text was updated successfully, but these errors were encountered: