Semantic Rule: WTF Parameter Styles
philsturgeon opened this issue · 1 comments
philsturgeon commented
format: oas3
Parameter styles, full of powerful footguns which are luckily too confusing to operate.
Doesn't look too confusing yet, but... enhance!
Wait what? enhance!
AAGGGH
Ok, so let's try and make some rules that look for invalid combinations so we can help users stumble towards a valid combination.
- Ensure "style" is set on a
type
which allows it. - Ensure "style" is set on an
in
which allows it. - Should we suggest people add an
example
for anything which contains a parameter style so the end users of whatever documentation tool will know what it's supposed to look like? - Can we validate that example against the confusing combination of things if its passing those first two checks?!
philsturgeon commented
Punted this over to https://github.com/philsturgeon/spectral-openapi/issues/3.