Skip to content

Commit

Permalink
Fix System.Text.Json.Serialization.JsonStringEnumConverter parameter …
Browse files Browse the repository at this point in the history
…for System.Text.Json.Serialization.JsonConverter (#1327)
  • Loading branch information
unchase committed Feb 24, 2021
1 parent 8f245db commit 48946d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NJsonSchema.CodeGeneration.CSharp/Templates/Class.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
{% endif -%}
{% if property.IsStringEnum -%}
{% if UseSystemTextJson -%}
[System.Text.Json.Serialization.JsonConverter(System.Text.Json.Serialization.JsonStringEnumConverter)]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
{% else -%}
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
{% endif -%}
Expand All @@ -98,11 +98,11 @@
get { return {{ property.FieldName }}; }
{% if property.HasSetter -%}
{% if RenderInpc -%}
{{PropertySetterAccessModifier}}set
{{PropertySetterAccessModifier}}set
{
if ({{ property.FieldName }} != value)
{
{{ property.FieldName }} = value;
{{ property.FieldName }} = value;
RaisePropertyChanged();
}
}
Expand Down

0 comments on commit 48946d7

Please sign in to comment.