Skip to content

Commit 102a7b8

Browse files
committed
make Feature.properties optional
* up to now it was required, but could be null
1 parent 7cc00fb commit 102a7b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GeoJSON.Net/Feature/Feature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public Feature(TGeometry geometry, TProps properties, string id = null)
3939
[JsonConverter(typeof(GeometryConverter))]
4040
public TGeometry Geometry { get; }
4141

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

4545
/// <summary>

0 commit comments

Comments
 (0)