Skip to content

Commit

Permalink
docs: add optional fields specification to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ADR-007 committed Apr 11, 2024
1 parent be8b7b6 commit 31655af
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 @@ -58,6 +58,12 @@ UserPartialUpdateSchema(age=17) # raises ValidationError

```

There is also possible to specify a limited list of fields to be partial:

```python
UserPartialUpdateSchema = create_partial_model(UserSchema, 'name', 'nickname')
```

## Known limitations

#### MyPy: "is not valid as a type" error
Expand Down

0 comments on commit 31655af

Please sign in to comment.