Skip to content

Best way to implement reusable Custom Field Types? #555

Closed Answered by heitorlessa
deric4 asked this question in Q&A
Discussion options

You must be logged in to vote

hey @deric4 somehow we missed this due to GitHub Discussions feature. In your case, it's best to use import pydantic, because of this line so they can be used in projects that don't use aws-lambda-powertools-python.

What we're doing in Lambda Powertools is making sure you have an escape hatch should you need something from pydantic that we don't expose directly. Because you have to install pydantic to use the Parser utility, this will be available in the import namespace, so you can use from pydantic import ...., or import pydantic as you normally would.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@deric4
Comment options

Answer selected by deric4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants