mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
854a41e556
no-issue By using the "email" validation, we were validating emails in CSV imports using a different validator to the rest of the API. AJV's built in email validation was failing on emails with "special" characters, such as letters with an umlaut above them. This commit brings the validation for CSV imports in line with the rest of the API.
341 B
341 B
1 | name | note | subscribed_to_emails | complimentary_plan | stripe_customer_id | created_at | labels | |
---|---|---|---|---|---|---|---|---|
2 | valid@email.com | ,name starting with coma | not_boolean | false | not_a_date | labels | ||
3 | valid2@email.com | good name | true | not_boolean | 2019-10-30T14:52:08.000Z | more-labels | ||
4 | invalid_email_value | good name | true | false | 2019-10-30T14:52:08.000Z | more-labels |