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
Is your feature request related to a problem? Please describe.
It doesn't seem as though defining params at the top level currently works, only at the API route level.
Describe the solution you'd like
It would be nice to follow the current convention and just allow for @Param tags to work at the top level.
As an example, this is more or less what I'm trying to emulate:
swagger: "2.0"info:
description: | This is a swagger defenition for [Telegram bot API](https://core.telegram.org/bots/api).version: "3.6"title: Telegram bot APIexternalDocs:
description: Find out more about Telegram bot APIurl: https://core.telegram.org/bots/apihost: api.telegram.orgschemes:
- httpsconsumes:
- application/jsonproduces:
- application/jsonbasePath: /parameters:
token:
in: pathname: tokenrequired: falsetype: stringdescription: bot's token to authorize the request
Describe alternatives you've considered
Manually editing the generated docs or adding the parameters to each individual route seem to be the only solutions for now, unless I'm missing something and this is already possible.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It doesn't seem as though defining params at the top level currently works, only at the API route level.
Describe the solution you'd like
It would be nice to follow the current convention and just allow for
@Param
tags to work at the top level.As an example, this is more or less what I'm trying to emulate:
Describe alternatives you've considered
Manually editing the generated docs or adding the parameters to each individual route seem to be the only solutions for now, unless I'm missing something and this is already possible.
The text was updated successfully, but these errors were encountered: