From a3a54bf80d22d7eb781d6cfaea89a917b6750d23 Mon Sep 17 00:00:00 2001 From: Andrew Boyton Date: Wed, 23 May 2018 12:43:28 +1000 Subject: [PATCH] Add docs about calling reset Ref justinrainbow/json-schema/issues/385 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index aabb2eb6..9b51d65f 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ if ($validator->isValid()) { } ``` +If you are validating multiple things then you should call `$$validator->reset();` between calls to `$validator->validate()`. See [#385](https://github.com/justinrainbow/json-schema/issues/385) for more details. + ### Type coercion If you're validating data passed to your application via HTTP, you can cast strings and booleans to