Use object type query param in swagger documentation

后端 未结 3 2041
既然无缘
既然无缘 2020-11-29 13:17

I have a GET route where I would like to encode an object parameter in the url as a query string.

When writing the swagger documentation I basically get errors that

3条回答
  •  青春惊慌失措
    2020-11-29 13:50

    I don't think you can use "object" as query parameter in Swagger spec as query parameter only supports primitive type (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types)

提交回复
热议问题