Skip to content

Commit 708fae1

Browse files
committed
Fix LineString schema
1 parent baffe89 commit 708fae1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

webapp/src/cljc/lipas/schema/common.cljc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
[:type [:enum "LineString"]]
135135
[:coordinates
136136
;; Use the vector generator with min 2, max 10 coordinates for variety
137-
[:vector {:min 2 :max 10} #'coordinates]]])
137+
[:vector {:min 2} #'coordinates]]])
138138

139139
(def polygon-geometry
140140
[:map {:description "GeoJSON Polygon geometry. Per RFC 7946, requires linear rings (4+ positions, first = last)."}
@@ -195,19 +195,19 @@
195195
[:map {:description "GeoJSON FeatureCollection with required Point geometries."}
196196
[:type [:enum "FeatureCollection"]]
197197
[:features
198-
[:sequential {:min 1 :max 1} #'point-feature]]])
198+
[:sequential #'point-feature]]])
199199

200200
(def line-string-feature-collection
201201
[:map {:description "GeoJSON FeatureCollection with required LineString geometries."}
202202
[:type [:enum "FeatureCollection"]]
203203
[:features
204-
[:sequential {:min 1} #'line-string-feature]]])
204+
[:sequential #'line-string-feature]]])
205205

206206
(def polygon-feature-collection
207207
[:map {:description "GeoJSON FeatureCollection with required Polygon geometries."}
208208
[:type [:enum "FeatureCollection"]]
209209
[:features
210-
[:sequential {:min 1} #'polygon-feature]]])
210+
[:sequential #'polygon-feature]]])
211211

212212
(comment
213213
(require '[malli.core :as m])

0 commit comments

Comments
 (0)