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
Yes sure. Sorry should have done it in the issue description.
validateResponseByPath throws an error for example when there's extra props in the response that shouldn't be in there.
Ideally it shouldn't be needed but.... say there's no proper testing in place and there's an extra field being sent on the response instead of an error maybe we can use this validator to remove this not allowed extra props. (It wouldn't be anymore only about validating though)
Given this example and passing this optional setting it would not thrown an error but instead fix it by removing the not allowed properties (password) from the response.
Haven't thought on required in the first place but could either be the same option or another setting for required. Or keep throwing the error :)
Hey would an option to validate response to strip non wanted fields be a good idea for the package?
The text was updated successfully, but these errors were encountered: