Skip to content

Commit 6baeec4

Browse files
docs(parser): improve documentation with Pydantic best practices (aws-powertools#5925)
* docs: improve the doc for the customer from v2 library. * docs: improve the doc from PR Co-authored-by: Leandro Damascena <[email protected]> Signed-off-by: Alpha <[email protected]> --------- Signed-off-by: Alpha <[email protected]> Co-authored-by: Leandro Damascena <[email protected]>
1 parent b84a9b2 commit 6baeec4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/utilities/parser.md

+2
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ If you run using a test event `{"message": "hello universe"}` you should expect
259259

260260
`model_validator` can help when you have a complex validation mechanism. For example finding whether data has been omitted or comparing field values.
261261

262+
!!! tip "If you are still using the deprecated `root_validator` function, switch to `model_validator` for the latest Pydantic functionality."
263+
262264
```python title="model_validator.py" hl_lines="1 12-17"
263265
--8<-- "examples/parser/src/model_validator.py"
264266
```

0 commit comments

Comments
 (0)