Sendgrid-csharp: Feature Request: Custom serializer option to handle Dynamic Template Data serialization

Created on 21 Mar 2020  路  4Comments  路  Source: sendgrid/sendgrid-csharp

example:

var msg = new SendGridMessage();
var serializerSettings = new Newtonsoft.Json.JsonSerializerSettings
                {
                    NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
                    ContractResolver = new CamelCasePropertyNamesContractResolver()
                };
msg.SetTemplateData(dynamicTemplateData, serializerSettings);

Current options are far too restrictive, I can only see that decorating properties with JsonProperty has any type of effect.

Also, I'm sure this test is simply testing Newtonsofts lib.

help wanted community enhancement

Most helpful comment

More than happy to do so! Following all guidelines!

Looking at open pull requests, may I ask the time it may take to merge this functionality?

All 4 comments

Pull requests to add this feature are welcome and will be reviewed based on priority, but Twilio SendGrid is not actively building new functionality for the library.

More than happy to do so! Following all guidelines!

Looking at open pull requests, may I ask the time it may take to merge this functionality?

@shervinw @eshanholtz Not sure if the pull request is already there? we have bumped into this with .net 5. https://github.com/sendgrid/sendgrid-csharp/issues/1050

No PRs yet, but they are welcome!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kquinbar picture kquinbar  路  4Comments

lijaso picture lijaso  路  3Comments

clairernovotny picture clairernovotny  路  4Comments

thinkingserious picture thinkingserious  路  4Comments

fireole picture fireole  路  4Comments