Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfeitosa authored Mar 6, 2023
1 parent 9c3646a commit 8a93697
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ print(n.validate(2023)) # False
> Add a mutation function than will run after the `validate` method. P.S. Will only be executed in the `parse` method
* `parse(data): typeof data`
> Run the `validate` method, the mutations and return a deep clone of data
* `default(data): Self`
> Set a default value for when the validator receives None and you don't want to generate an error
* `optional(): Self`
> Allow values None
* `required(error_message=None): Self`
> Mark the schema as required. Does not allow values None
### `NumberSchema`
inherits from [`BaseSchema`](#baseschema)
Expand Down

0 comments on commit 8a93697

Please sign in to comment.