Forum Discussion

thomasleesai's avatar
thomasleesai
New Contributor
7 years ago
Solved

Parameters - "path" not working

I'm getting a validation error stating that the "in" property for a parameter can only be "Cookie, Header, or Query". Based on the documentation I thought "path" should also be an option. On occasion, the document will validate and not show any errors, but after additional changes, the incorrect validation errors will show again.

 

Here is a link to the document in question:

https://app.swaggerhub.com/apis/saiglobal/compliance360-employee/2.0.0

  • Path parameters have to be required (following the spec) - add

    required: true

    to your parameter definitions, and the errors would go away.

2 Replies

  • Path parameters have to be required (following the spec) - add

    required: true

    to your parameter definitions, and the errors would go away.