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
Oh jeez. It seems to be over a year since this issue has been opened and no resolution. I hope I'm not necro-posting.
I figured out how to somewhat get serverless-openapi-documentation working with the serverless TS template. I say "somewhat" because there's a few kinks that I found when using this plugin but it's a good place to start for anyone else looking into this.
Initial Configuration
For initial configurations, I created a new typescript file called docs. Inside it has the following contents
When running serverless openapi generate, it creates an openapi.yml that contains documentation about my functions, models and response types but it can't seem to translate pathParams or queryParams properly.
I specified them in my documentation like so:
pathParams: [
{
name: 'id',
description: 'Hotel ID to retrieve',
schema: {
type: 'string'
}
}
],
But it doesn't seem to be included in the openapi.yml output. Am I missing anything here?
Issue described here:
https://stackoverflow.com/questions/64117950/how-to-use-serverless-openapi-documentation-with-serverless-typescript-template
The text was updated successfully, but these errors were encountered: