-
Notifications
You must be signed in to change notification settings - Fork 421
feat: Add Ses lambda event support to Parser utility #213 #214
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
Conversation
fbb2ee3
to
1645bd1
Compare
from typing_extensions import Literal | ||
|
||
|
||
class SesReciptVerdict(BaseModel): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo - Receipt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
pyproject.toml
Outdated
@@ -51,7 +51,7 @@ flake8-bugbear = "^20.1.4" | |||
|
|||
|
|||
[tool.poetry.extras] | |||
pydantic = ["pydantic", "typing_extensions"] | |||
pydantic = ["pydantic", "typing_extensions", "pydantic[email]"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does Pydantic[email] brings?
Anything else other than EmailStr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just that
Codecov Report
@@ Coverage Diff @@
## develop #214 +/- ##
========================================
Coverage 99.88% 99.88%
========================================
Files 69 70 +1
Lines 2547 2600 +53
Branches 109 109
========================================
+ Hits 2544 2597 +53
Misses 3 3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last minor change and it's good to merge :-)
pyproject.toml
Outdated
@@ -24,6 +24,7 @@ fastjsonschema = "^2.14.5" | |||
boto3 = "^1.12" | |||
jmespath = "^0.10.0" | |||
pydantic = {version = "^1.6.0", optional = true } | |||
email-validator = "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make this optional, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks a lot Ran!!
Also added email-validator module as an extra dependancy for pydantic email addresses validations.