-
Notifications
You must be signed in to change notification settings - Fork 312
Closed
Description
When the schema includes query parameters with default value = 0
(type: integer) or false
(type: boolean), the default value is not shown in the rendered document.
Setup details:
- Node: 14.16.0
- NPM: 7.17.0
- Bundler: vite 2.6.3
- RapiDoc: 9.1.3 (from the CDN: https://unpkg.com/[email protected]/dist/rapidoc-min.js)
Example:
Schema
{
"components": {},
"info": {
"title": "Example Schema",
"version": "0.0.1"
},
"openapi": "3.0.3",
"paths": {
"/api/v1/example": {
"get": {
"operationId": "v1_example",
"description": "Example API",
"parameters": [
{
"in": "query",
"name": "boolean_query_parameter",
"schema": {
"type": "boolean",
"default": false
}
},
{
"in": "query",
"name": "integer_query_parameter",
"schema": {
"type": "integer",
"default": 0
}
}
]
}
}
}
}
haoyun and iburakov
Metadata
Metadata
Assignees
Labels
No labels