Skip to content

Commit

Permalink
Emend README
Browse files Browse the repository at this point in the history
  • Loading branch information
roo-oliv committed Jul 1, 2017
1 parent b0a017c commit 2b1743a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,10 @@ All validation options can be found at http://json-schema.org/latest/json-schema
By default Flasgger will use [python-jsonschema](https://python-jsonschema.readthedocs.io/en/latest/)
to perform validation.

Custom validation functions are supported as long as they take two
positional arguments: the data to be validated as:
- the first and the schema to validate against as the second argument; and
Custom validation functions are supported as long as they meet the requirements:
- take two, and only two, positional arguments:
- the data to be validated as the first; and
- the schema to validate against as the second argument
- raise any kind of exception when validation fails.

Any return value is discarded.
Expand Down

0 comments on commit 2b1743a

Please sign in to comment.