Skip to content

Commit

Permalink
chore: Fix [JsonNumberHandling] is only valid on a number
Browse files Browse the repository at this point in the history
'JsonNumberHandlingAttribute' is only valid on a number or a collection of numbers when applied to a property or field.
  • Loading branch information
jim60105 committed Jan 11, 2024
1 parent 9656fc3 commit acbeb77
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Models/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public abstract class Entity :
/// Entity identifier
/// </summary>
[JsonPropertyName("id")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
public virtual string id
{
get
Expand All @@ -39,7 +38,6 @@ public virtual string id

#if COUCHDB
[JsonPropertyName("_id")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
public override string Id
{
get => $"{id}:{id}";
Expand Down

0 comments on commit acbeb77

Please sign in to comment.