You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m having a hard time trying to define a custom JsonConvert for my C# generation as the default template places [JsonConvert(typeof(DateFormatConverter)] atop each of my dates, and Attributes take priority over JsonSerializerOptions so I cannot make my JsonParse prioritise my converter.
my current solution is to just set all Date, DateTime to be string (and leaving responsibility of extracting the types further down the code base as it’s needed) as the only other solution I could come up with is to override the TemplateDirectory and make a copy of the entire set of templates with the one file I need to change being updated.
is there a better way? Sorry if there is any formatting/grammar I can’t comment publicly from my work account.
The text was updated successfully, but these errors were encountered:
Hey all!
I’m having a hard time trying to define a custom JsonConvert for my C# generation as the default template places [JsonConvert(typeof(DateFormatConverter)] atop each of my dates, and Attributes take priority over JsonSerializerOptions so I cannot make my JsonParse prioritise my converter.
my current solution is to just set all Date, DateTime to be string (and leaving responsibility of extracting the types further down the code base as it’s needed) as the only other solution I could come up with is to override the TemplateDirectory and make a copy of the entire set of templates with the one file I need to change being updated.
is there a better way? Sorry if there is any formatting/grammar I can’t comment publicly from my work account.
The text was updated successfully, but these errors were encountered: