Open
Description
Pretty sure this is an issue with my config, but I need some help. I have added a bit of documentation to some of my endpoints, but none of the parameters seem to be getting added to the openapi spec created when I run the generator. Here is an example of an endpoint's documentation:
getDailyHistoricalData:
summary: "Get Daily Historical Data"
description: "Returns at least 60 days worth of historical data on the requested security"
requestBody:
description: "None"
queryParams:
- name: "identifier"
required: true
description: "Identifier of the security to query daily data on"
schema:
type: "string"
The summary and description are the the only things making it through to the generated json file. This is the command I am using: serverless openapi generate -o '../docs/historical.json' -f json
Any idea why I am not getting the queryParams or the requestBody. Here is what the output for that endpoint looks like:
"/daily": {
"get": {
"operationId": "getDailyHistoricalData",
"summary": "Get Daily Historical Data",
"description": "Returns at least 60 days worth of historical data on the requested security",
"responses": {}
}
}
thanks
Metadata
Metadata
Assignees
Labels
No labels