mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-21 19:17:07 +00:00
Added json enum to csharp with decoration
using newtonsoft decoration
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
public enum {{name}} {
|
||||
{{#allowableValues}}{{#enumVars}}
|
||||
[EnumMember("{{jsonname}}")]
|
||||
{{name}}{{^-last}},
|
||||
{{/-last}}{{#-last}}{{/-last}}{{/enumVars}}{{/allowableValues}}
|
||||
}
|
||||
Reference in New Issue
Block a user