You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lint an OAS 3 with links section, where a link object has a parameters collection containing the usual name to path dictionary.
Get warnings like this:
Rule:
Parameter objects should have a description.
Details:
paths./allSchools/createUploadSession.post.responses.201.links.getUploadSessionById.parameters.sessionId.description is not truthy
But the parameters collection in a links object is not a parameters object.
What is the expected behavior?
No warning.
What is the motivation / use case for changing the behavior?
Correctness.
Please tell us about your environment:
Web version.
The text was updated successfully, but these errors were encountered:
Ok this sounds like the rule for parameters is just a little greedy. The trouble with making them too specific is that then we have trouble linting on partial files with $ref, as if we just see the word parameters we dont know if its links parameters or operation parameters. 🤔
Hmm, right now we look for parameters objects that don't have a $ref key. While still not perfect, a better indicator might be check for presence of an in key. This would cover $ref and also fix the issue described here re link parameters property false identification.
I'm submitting a...
What is the current behavior?
Lint an OAS 3 with links section, where a link object has a parameters collection containing the usual name to path dictionary.
Get warnings like this:
Rule:
Parameter objects should have a description.
Details:
paths./allSchools/createUploadSession.post.responses.201.links.getUploadSessionById.parameters.sessionId.description is not truthy
But the parameters collection in a links object is not a parameters object.
What is the expected behavior?
No warning.
What is the motivation / use case for changing the behavior?
Correctness.
Please tell us about your environment:
Web version.
The text was updated successfully, but these errors were encountered: