EmailProperty seems to be required
See original GitHub issueDespite email_distribution = EmailProperty(required=False,...
the validation for Email Property seems to be required.
For example, when I try to submit a blank email field I get this back:
'' does not matches '[^@]+@[^@]+\\.[^@]+'
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Change work email property using Online powershell
I have done some research and it seems this is not feasible. For the cmdlet Set-SPOuser is to configure properties of an existing...
Read more >What is the type of error when authenticating with Google ...
I'm using typescript, I'm accessing err.email as shown in their docs. but it seems that there is not email property in the error, ......
Read more >Anybody can help me with IMAP configuration in mule 4? I am ...
IMAP with outlook.office365.com works fine utilizing the beneath property in the connector properties configuration. <email:property key="mail.
Read more >Can't retrieve email property in access token despite being ...
My issue is likely due to confusion between access and ID token. When I use the universal login, I appear to get all...
Read more >Property types — neomodel 4.0.8 documentation
Setting required=True makes the property mandatory. ... uid = UniqueIdProperty() full_name = StringProperty(required = True) email = EmailProperty().
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is not a bug but is you misunderstanding what the
required=False
attribute means.By setting the property as optional i.e.
required=False
you are saying that you do not need to set the property at all or you can set it toNone
. Setting it to an empty string is not the same asNone
as it has a value (an empy string) and thus it does not match the regex.Here is an example of a simple class which I will try to save three instances of, one that will fail as it has an invalid email of an empty string and then the 2nd which will show the correct way of using the object without assigning the email and then the third which will show the alternative method where I’ll set
email=None
@HashRocketSyntax Thank you, this has now been highlighted in the documentation and will be rolled out in an upcoming release.