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
In an OAS2 API, I'd like to mark endpoints that have a consumes attribute on an endpoint having no body parameter as an error.
I'd like to check against both global and local consumes declarations.
I guess this requires a custom function. Has anyone written such a function?
Example where GET /foos/{id} should be flagged as having (two) irrelevant "consumes" declarations.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In an OAS2 API, I'd like to mark endpoints that have a
consumes
attribute on an endpoint having no body parameter as an error.I'd like to check against both global and local consumes declarations.
I guess this requires a custom function. Has anyone written such a function?
Example where GET /foos/{id} should be flagged as having (two) irrelevant "consumes" declarations.
Beta Was this translation helpful? Give feedback.
All reactions