【发布时间】:2018-02-17 17:48:01
【问题描述】:
在下面的 OpenAPI 定义中,参数定义导致解析器错误“bad indentation of a mapping entry”。怎么了?
paths:
/users/{username}:
get:
tags:
- users
summary: "Get the users profile"
parameters:
-in: path
name: username
description: "get user by name"
type: string
required: true
responses:
200:
description: OK
schema:
$ref: "#/definitions/users"
【问题讨论】:
标签: swagger swagger-ui swagger-2.0