摇摇欲坠的编辑器:缺少属性:必填

时间:2019-09-09 21:28:22

标签: swagger openapi swagger-editor

我正在使用openapi 3并收到错误消息:

should have required property 'required' 
missingProperty: required

这是我的文件:

openapi: 3.0.0
...
- name: count
  in: path
  description: "count"
  schema:
     type: boolean

如果我添加required: false,则会出现另一个错误,提示required can only be true

1 个答案:

答案 0 :(得分:1)

Path parameters始终是必需的,因此它们必须具有35.0