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 want to add quotes for strings when serializing a model (class), but adding attributes on properties is not my case - because I want it automated.
I checked issues on this GitHub repo and stackoverflow to find answers to my question, but without success, I saw solutions but they either did not work or just added the quotes for everything.
I think about smth like this, I guess there should be a way to do that via event emitter or in another way.
varyamlSerializer=newSerializerBuilder().WithNamingConvention(CamelCaseNamingConvention.Instance).WithDefaultScalarStyle(ScalarStyle.DoubleQuoted)// add this line.Build();
I want to add quotes for strings when serializing a model (class), but adding attributes on properties is not my case - because I want it automated.
I checked issues on this GitHub repo and stackoverflow to find answers to my question, but without success, I saw solutions but they either did not work or just added the quotes for everything.
I think about smth like this, I guess there should be a way to do that via event emitter or in another way.
The text was updated successfully, but these errors were encountered: