You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openapi: 3.0.0info:
title: Sample APIdescription: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.version: 0.1.9servers:
- url: http://api.example.com/v1description: Optional server description, e.g. Main (production) server
- url: http://staging-api.example.comdescription: Optional server description, e.g. Internal staging server for testingpaths:
/users:
get:
summary: Returns a list of users.description: Optional extended description in CommonMark or HTML.parameters:
- in: queryname: sortdescription: Sort orderschema:
type: stringnullable: trueenum:
- asc
- desc
- nullresponses:
'200':
description: A JSON array of user namescontent:
application/json:
schema:
type: stringnullable: trueenum:
- asc
- desc
- null
Swagger-UI configuration options:
SwaggerUI({// no custom option})
Describe the bug you're encountering
Both Parameters and Responses section,
when there are enum type variables and the enum variables have null value, null value is not shown.
To reproduce...
use above yaml
Expected behavior
null value should be shown
Screenshots
Additional context or thoughts
The text was updated successfully, but these errors were encountered:
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
Describe the bug you're encountering
Both Parameters and Responses section,
when there are enum type variables and the enum variables have null value, null value is not shown.
To reproduce...
use above yaml
Expected behavior
null value should be shown
Screenshots
Additional context or thoughts
The text was updated successfully, but these errors were encountered: