Search code examples
swaggeropenapiswagger-editor

swagger editor: missingProperty: required


I am using openapi 3 and got an error:

should have required property 'required' 
missingProperty: required

Here is my file:

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

If I add required: false, I got another error saying required can only be true


Solution

  • Path parameters are always required, so they must have required: true.