添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account - channel summary : List of public channels description : Similar to list of entities, but returns only entities of type Channel. operationId : getPublicChannels responses : ' 200 ' : description : successful operation content : application/json : schema : $ref : ' #/components/schemas/ChannelListResponse ' ' 400 ' : $ref : ' #/components/responses/ErrorResponse ' post : tags : - channel summary : Create channel description : Create channel with given properties. operationId : createChannel parameters : title : name : title in : query required : true

Expected Behavior

This definition should imho work as its similar to https://github.com/OAI/OpenAPI-Specification/blob/3.0.0-rc0/versions/3.0.md#parameterObject

Current Behavior

Error message: parameters should be an array.

Changing the title definition to - title changes the error:

Should not have additional properties. Additional property: title
          in: query
          required: true

Please refer to our documentation about how to write API definitions - https://swagger.io/docs/specification/describing-parameters

In the future, provide full API definitions and not snippets as it makes it more difficult to support.