Skip to content

Commit 82037ea

Browse files
committed
More flexibility for GeoJSONType
1 parent 7ab2232 commit 82037ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/GeoJSONKit/GeoJSON.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public struct GeoJSON: Hashable {
129129

130130
}
131131

132-
public enum GeoJSONType: String, Codable {
132+
public enum GeoJSONType: String, Codable, CaseIterable {
133133
case feature = "Feature"
134134
case featureCollection = "FeatureCollection"
135135
case point = "Point"
@@ -386,7 +386,7 @@ public struct GeoJSON: Hashable {
386386
}
387387
}
388388

389-
public let type: GeoJSONType
389+
public var type: GeoJSONType
390390
public var object: GeoJSONObject
391391

392392
/// A GeoJSON object MAY have a member named "bbox" to include

0 commit comments

Comments
 (0)