Skip to content

Utilities -> Parser -> Validating Entire Model -> Typo in "Example" #729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Oct 4, 2021 · 1 comment
Closed
Labels
documentation Improvements or additions to documentation

Comments

@ghost
Copy link

ghost commented Oct 4, 2021

What were you initially searching for in the docs?
I was trying to understand how to implement the input model parser with validations.

Is this related to an existing part of the documentation? Please share a link
https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/parser/#validating-entire-model

Describe how we could make it clearer
The example provided uses the @root_validator decorator, but the import statement is only importing validator (which is unused).

If you have a proposed update, please share it here
In the import statement, please replace validator with root_validator.

@ghost ghost added the documentation Improvements or additions to documentation label Oct 4, 2021
@heitorlessa heitorlessa added the pending-release Fix or implementation already in dev waiting to be released label Oct 5, 2021
@heitorlessa
Copy link
Contributor

Thanks a lot @nsandar for flagging this - I've just merged and it's available in the staging docs --- it'll be available in the latest today as part of the next release

https://awslabs.github.io/aws-lambda-powertools-python/develop/utilities/parser/#validating-entire-model

@heitorlessa heitorlessa removed the pending-release Fix or implementation already in dev waiting to be released label Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant