Skip to content

Commit

Permalink
make Feature.properties optional
Browse files Browse the repository at this point in the history
* up to now it was required, but could be null
  • Loading branch information
janusw committed Jul 3, 2023
1 parent 24be0a8 commit 89fae47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GeoJSON.Net/Feature/Feature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Feature(TGeometry geometry, TProps properties, string id = null)
[JsonConverter(typeof(GeometryConverter))]
public TGeometry Geometry { get; }

[JsonProperty(PropertyName = "properties", Required = Required.AllowNull)]
[JsonProperty(PropertyName = "properties", Required = Required.Default)]
public TProps Properties { get; }

/// <summary>
Expand Down

0 comments on commit 89fae47

Please sign in to comment.