openapi-typescript version
6.8.0
Node.js version
all
OS + version
all
Description
api-docs.minimal-reproduction.json
The route /api/carrier/photo/{carrierId}/fromOrders/{orderId} has required: false in the parameter description.
Relevant part of the file above
"/api/carrier/photo/{carrierId}/fromOrders/{orderId}": {
"get": {
"parameters": [
{
"name": "carrierId",
"in": "path",
"required": true
},
{
"name": "orderId",
"in": "path",
"required": false,
"allowEmptyValue": true
}
]
}
},
Reproduction
Run the file in the link above.
Expected result
The parameters.path should result in { carrierId: string, orderId?: string }
Required
Extra
openapi-typescript version
6.8.0
Node.js version
all
OS + version
all
Description
api-docs.minimal-reproduction.json
The route
/api/carrier/photo/{carrierId}/fromOrders/{orderId}hasrequired: falsein the parameter description.Relevant part of the file above
Reproduction
Run the file in the link above.
Expected result
The
parameters.pathshould result in{ carrierId: string, orderId?: string }Required
npx @redocly/cli@latest lint)Extra