-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
swagger-api/swagger-js
#2324Description
Q&A
- OS: Any
- Browser: Any
- Swagger-UI version: 4.0.1
- Swagger/OpenAPI version: OpenAPI 3.0
Content & configuration
Example Swagger/OpenAPI definition:
openapi: 3.0.3
info:
version: 1.0.0
title: test
description: test
contact:
name: test
email: test@example.com
servers:
- url: 'https://localhost/api'
tags:
- name: Test
description: Test
paths:
/one:
get:
description: test
operationId: one
tags:
- Test
parameters:
- name: test
in: header
required: true
schema:
type: string
responses:
'default':
description: Response
content:
text/plain:
schema:
type: integer
enum: [ 401, 404, 500 ]
components:
schemas:
parent:
type: object
required:
- required1
properties:
required1:
type: string
nested1:
type: object
required:
- nestedrequired1
properties:
nestedrequired1:
type: string
child:
allOf:
- $ref: '#/components/schemas/parent'
- type: object
required:
- required2
properties:
required2:
type: string
nested1:
type: object
required:
- nestedrequired2
properties:
nestedrequired2:
type: stringSwagger-UI configuration options: Default.
Describe the bug you're encountering
To reproduce...
Steps to reproduce the behavior:
- Open the above YAML in https://editor.swagger.io/
- Expand "Schemas"
- Notice missing
*next tonestedrequired1underchild
Expected behavior
nestedrequired1 is marked with *, just like required1, under child
Screenshots
Additional context or thoughts
Is this a swagger-ui or a swagger-js bug?
Metadata
Metadata
Assignees
Labels
No labels
