0
SwaggerUIで簡単に表示するためにSwaggerでAPIを作成しようとしていますが、私はあまり理解していないエラーに遭遇しています。私が知る限り、私は仕様を守っています。Swagger Editorのパラメータエラー
/history/tags/{tag_id}:
get:
summary: "Gets the history of this tag."
description: "Warning: not using both the start and end date fields may result in excessively long responses."
operationId: "get_tag_history"
produces:
- "application/json"
parameters:
- name: "tag_id"
in: "path"
description: "UUID for this tag."
type: "string"
required: true
- name: "start_date"
in: "query"
description: "Start date for history"
type: "String"
foramt: "date"
required: false
- name: "end_date"
in: "query"
description: "End date for history"
type: "String"
foramt: "date"
required: false
responses:
200:
description: "Operation success"
schema:
$ref: "#/definitions/Tag_history"
400:
description: "Invalid request"
2番目と3番目のパラメータは、(どのパラメータに応じて、またはparameters[2]
)Schema error at paths./history/tags/{tag_id}.get.parameters[1] is not exactly one from <#/definitions/parameter>,<#/definitions/jsonReference>
を投げています。
私が見た他のほとんどの問題は単にschema:
を使用することを忘れているだけですが、それはクエリパラメータの構造ではありません。何か案は?
type: "string"
format: "date"
type
へ
これはちょっと恥ずかしいことです...ありがとうございます。 – James