-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Implement templates module (beta) #63
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
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.
3 issues found across 16 files
Prompt for AI agents (all 3 issues)
Understand the root cause of the following 3 issues and fix them.
<file name="src/main/java/com/resend/services/templates/model/CreateTemplateOptions.java">
<violation number="1" location="src/main/java/com/resend/services/templates/model/CreateTemplateOptions.java:44">
Make a defensive copy of the reply-to list when constructing CreateTemplateOptions so later mutations of the caller's list don't bleed into the built request.</violation>
<violation number="2" location="src/main/java/com/resend/services/templates/model/CreateTemplateOptions.java:47">
Copy the variables list when building CreateTemplateOptions so post-build mutations of the source list cannot alter the request options.</violation>
</file>
<file name="src/main/java/com/resend/services/templates/Templates.java">
<violation number="1" location="src/main/java/com/resend/services/templates/Templates.java:91">
Rule violated: **Initialisms and Acronyms Naming Conventions**
`URLHelper` keeps the acronym in all caps, violating the Initialisms and Acronyms Naming Conventions that require camel-casing acronyms (e.g., `UrlHelper`). Please rename the helper and its usages accordingly.</violation>
</file>
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
src/main/java/com/resend/services/templates/model/CreateTemplateOptions.java
Show resolved
Hide resolved
src/main/java/com/resend/services/templates/model/CreateTemplateOptions.java
Show resolved
Hide resolved
| /** | ||
| * Boolean type variable. | ||
| */ | ||
| BOOLEAN("boolean"), |
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.
We've thought more about the variable types, and we'll go forward without the boolean, object and list types for now. The docs don't reflect this decision yet, but I'll update it
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.
done
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.
Thank you!!
Summary by cubic
Introduced a Templates module (beta) to manage email templates via Resend.templates(). Adds typed models and pagination support.