Rule to validate presence of "delete" property in schema reference of POST requestBody #2589
Unanswered
singhkkshitij
asked this question in
Q&A
Replies: 1 comment
-
|
have also tried with field : |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hello ,
I need help to write a custom Spectral rule which can detect occurence of "delete" keyword in requestBody of POST paths schema reference .
Issue is : some API providers are giving OpenAPI files which allows "delete" in request payload in POST method apart from create & update.
Below is extract of API definition and reference :
I need to define rule to capture "delete" which is defined under "UpdateDocRequest".
I tried to create this rule abnd many more but no success for now :
Any help on this will be very much appreciated.
Thanks in advance.
Kind regards,
Kshitij
Beta Was this translation helpful? Give feedback.
All reactions