File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -58,18 +58,9 @@ const markerSchema = z.object({
5858 ) ,
5959} ) ;
6060
61- // Route point schema (flexible coordinate format)
62- const routePointSchema = z . union ( [
63- coordinateSchema ,
64- z . array ( z . number ( ) ) . length ( 2 ) . describe ( "Coordinate as [lat, lon] array" ) ,
65- z . object ( {
66- coordinates : z . array ( z . number ( ) ) . length ( 2 ) . describe ( "Coordinates as {coordinates: [lat, lon]}" ) ,
67- } ) ,
68- ] ) ;
69-
7061// Route schema
7162const routeSchema = z . object ( {
72- points : z . array ( routePointSchema ) . describe ( "Array of route points in various coordinate formats" ) ,
63+ points : z . array ( coordinateSchema ) . describe ( "Array of route points in various coordinate formats" ) ,
7364 name : z . string ( ) . optional ( ) . describe ( "Optional route name" ) ,
7465 color : z . string ( ) . optional ( ) . describe ( "Route color in hex format (e.g., '#0066cc')" ) ,
7566} ) ;
You can’t perform that action at this time.
0 commit comments