0
,我發現了以下錯誤:揚鞭YAML查詢(對象類型)參數定義錯誤
Schema error at paths./cards/count.get.parameters[0] is not exactly one from <#/definitions/parameter>,<#/definitions/jsonReference>
這裏是我的定義:
/cards/count:
get:
tags:
- "cards"
summary: "Number of Cards available"
description: "Excludes cards which the user has answered correctly in the past."
operationId: "countCards"
produces:
- "application/json"
parameters:
- name: "tagFilter"
in: "query"
description: "Input is optional - left blank will return all tags and a count"
type: "object"
properties:
tags_any:
type: "array"
items:
type: "integer"
format: "int64"
enum: [1,2,3]
tags_all:
type: "array"
items:
type: "integer"
format: "int64"
enum: [4,5,6]
tags_not:
type: "array"
items:
type: "integer"
format: "int64"
enum: [4,5,6]
我明白你不能用一個模式定義按照這個問題:Swagger: Reusing an enum definition as query parameter
我需要修改,以使YAML編譯沒有錯誤?
完美無缺 - 謝謝! –
是否可以在Swaggerhub中使用開放API 3? –
@AllanBowe目前沒有,但我會假設它在路線圖上。 – Helen