fix(backend): require html or text in emails.create at the type level#9011
Conversation
🦋 Changeset detectedLatest commit: 3a84533 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Repository UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Summary
Stacked on #9010. Addresses CodeRabbit review feedback on that PR.
html/text" content requirement at the type level.CreateEmailParamsnow intersects a union, so omitting both bodies is a compile-time error instead of a server-side one. (CodeRabbit: Major)text-only test foremails.createto match the existinghtmlrequest/response coverage. (CodeRabbit: Minor)No changelog impact: the user-facing entry for
emails.createalready ships in #9010, so this carries an empty changeset.