Ask a Question

Parameters - "path" not working

SOLVED
thomasleesai
New Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
RonRatovsky
Moderator

Re: Parameters - "path" not working

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

required: true

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


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

View solution in original post

2 REPLIES 2
RonRatovsky
Moderator

Re: Parameters - "path" not working

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

required: true

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


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

View solution in original post

thomasleesai
New Contributor

Re: Parameters - "path" not working

Thanks! That totally makes sense. 

cancel
Showing results for 
Search instead for 
Did you mean: