Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Subject and content in mail send API should not be required #75

Open
rhumie opened this issue Mar 11, 2021 · 3 comments
Open

Subject and content in mail send API should not be required #75

rhumie opened this issue Mar 11, 2021 · 3 comments
Labels
status: help wanted requesting help from the community type: bug bug in the library

Comments

@rhumie
Copy link

rhumie commented Mar 11, 2021

Issue Summary

Subject and Content are defined as required according to the following, but they should not be required if you specify the template ID.
https://github.com/sendgrid/sendgrid-oai/blob/main/oai.yaml#L321-L322

@JenniferMah JenniferMah added help wanted type: bug bug in the library labels Mar 12, 2021
@JenniferMah
Copy link
Contributor

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

@riceyrice
Copy link

One thing I have noticed is that using a dynamic template is the API only sends the content types you provide in the API call, although the content value itself is replaced with template output, so the content type is required, just not the value.

@childish-sambino childish-sambino added status: help wanted requesting help from the community and removed help wanted labels Mar 31, 2022
@jbellos
Copy link

jbellos commented Feb 7, 2023

Ran into the same issue - I was really hoping to use this oai spec to build a mock server with prism/stoplight but this issue causes false assertions with our tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: help wanted requesting help from the community type: bug bug in the library
Projects
None yet
Development

No branches or pull requests

5 participants