一个简单的问题:如何编写OpenAPI规范。可以接受带有未定义名称的可选参数(即参数名称可以是任意随机字符串)?
示例:
GET /api/someEndPoint
GET /api/someEndPoint?key1=value1&key2=value2&key3=value3
GET /api/someEndPoint?aaa=valueA
/api/someEndPoint:
get:
parameters:
- description: one or more key value pairs
name: ???
in: query
required: false
schema:
type: string