Validate that path parameters have schema
or content
#2439
colinmollenhour
started this conversation in
Rulesets
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
User story.
As a user, I would like Spectral to warn me when I forget to specify a
schema
orcontent
in a path parameter.Is your feature request related to a problem?
Yes, I forgot to add a
schema
and it resulted in much confusion as Spectral passed validation but other tools choked with unhelpful error messages and it took a long time to realize a simple mistake.Describe the solution you'd like
If I forget to specify a
schema
orcontent
for a path parameter, Spectral should warn me with an error like:Additional context

Beta Was this translation helpful? Give feedback.
All reactions