Skip to content

Commit

Permalink
Add docs about calling reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Boyton committed May 23, 2018
1 parent a4bf903 commit a3a54bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3a54bf

Please sign in to comment.