Skip to content
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

fix: update mail text/html validation to allow either one or both #84

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

ghost
Copy link

@ghost ghost commented Dec 1, 2023

Description:
This PR updates the SMTP and Mailgun data DTOs to allow passing either html or text or both values when making API call to create notification.
Although it is recommended to provide both the plaintext and HTML content of an email being sent, it is not necessary and this update will allow developers the flexibility to use the API more conveniently as per their use case.

Related changes:

  • Update smtp and mailgun data dto to add ValidateIf validations for allowing either html or text to be passed in API call, or both

Update smpt and mailgun data dto to add ValidateIf validations for allowing either html or text to be passed in API call, or both
@ghost ghost added the ready for review label Dec 1, 2023
@ghost ghost self-assigned this Dec 1, 2023
@osm-vishnukyatannawar osm-vishnukyatannawar merged commit aae73d6 into main Dec 6, 2023
8 checks passed
@osm-vishnukyatannawar osm-vishnukyatannawar deleted the fix/mail-content-validation branch December 6, 2023 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants