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
[Question]: I have an optional Parameter in my API request with default value. When I do that, in swagger, I dont see required: true for that field.
#3190
Open
c6-dark opened this issue
Dec 10, 2024
· 3 comments
What are you wanting to achieve?
paths:
get:
summary: Example endpoint
parameters:
- name: optionalParam
in: query
required: false
schema:
type: string
responses:
'200':
description: Successful response
I am not getting required: false for the optional parameter. Is there a way to explicitly show required: false for optional parameters?
What code or approach do you have so far?
paths:
get:
summary: Example endpoint
parameters:
- name: optionalParam
in: query
required: false
schema:
type: string
responses:
'200':
description: Successful response
Additional context
No response
The text was updated successfully, but these errors were encountered: