我收到了错误:
0 $ refs无法匹配以下任何内容:“#/ definitions ”, “#/响应”
尝试使用此类(简化版)的定义时:
definitions:
Camera:
type: object
properties:
ip:
description: "device IP address"
type: string
required: [ip]
paths:
/cameras:
put:
parameters:
-
$ref: "#/definitions/Camera"