derek
derek

Reputation: 10207

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

Upvotes: 0

Views: 5203

Answers (1)

Helen
Helen

Reputation: 97540

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

Upvotes: 2

Related Questions