Open AlexElin opened 5 months ago
Example Swagger/OpenAPI definition:
openapi: 3.1.0 info: title: OpenAPI definition version: v0 servers: - url: http://localhost:8080 description: Generated server url paths: /address-part: get: tags: - demo-controller operationId: addressPart responses: "200": description: OK content: '*/*': schema: $ref: '#/components/schemas/AddressPart' components: schemas: AddressPart: description: address discriminator: propertyName: type mapping: BUILDING: '#/components/schemas/Building' STREET: '#/components/schemas/Street' oneOf: - $ref: '#/components/schemas/Building' - $ref: '#/components/schemas/Street' Building: description: Building properties: number: type: integer format: int32 type: type: string Street: description: Street properties: name: type: string type: type: string
Swagger-UI configuration options:
SwaggerUI({ "configUrl": "/v3/api-docs/swagger-config", "oauth2RedirectUrl": "http://localhost:8080/swagger-ui/oauth2-redirect.html", "url": "/v3/api-docs", "validatorUrl": "" })
?yourQueryStringConfig
Schemas' content from discriminator.mapping are not displayed.
discriminator.mapping
Steps to reproduce the behavior:
Schemas' content for mappings are displayed. E.g. the same way as it's done for oneOf (see the below screenshot)
oneOf
Schemas are shown just as regular text (not hyperlinks)
I have the same issue, and have noticed that the Example Values look fine, it's just the Schema that doesn't show correctly.
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
Describe the bug you're encountering
Schemas' content from
discriminator.mapping
are not displayed.To reproduce...
Steps to reproduce the behavior:
Expected behavior
Schemas' content for mappings are displayed. E.g. the same way as it's done for
oneOf
(see the below screenshot)Current behavior
Schemas are shown just as regular text (not hyperlinks)