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
{{ message }}
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
I suggest to consider adding method field validation of requests.
Why
At the moment we don't validate the method field (at least explicitly). Migrating toward more readable validation result Object that is being evolved with validation results of each field, it appears that explicit method validation would be beneficial.
How
Add the method field on validateRequest function.
Use strings comparison for validation.
The text was updated successfully, but these errors were encountered:
This is probably because Gavel is driven by the needs in Dredd and Apiary Mock/Proxy Server, where it's basically impossible to get mismatch in method. But it makes sense, from a more general point of view.
Ideally, we would describe the behavior using the .feature files first and then implement it.
I suggest to consider adding
method
field validation of requests.Why
At the moment we don't validate the
method
field (at least explicitly). Migrating toward more readable validation result Object that is being evolved with validation results of each field, it appears that explicitmethod
validation would be beneficial.How
method
field onvalidateRequest
function.The text was updated successfully, but these errors were encountered: