@@ -44,17 +44,18 @@ object UPickleReaderWriters extends AttributeTagged {
44
44
val base64ReadWriter : ReadWriter [Array [Byte ]] =
45
45
readwriter[String ].bimap(Base64 .getEncoder.encodeToString, Base64 .getDecoder.decode)
46
46
implicit val extractFieldsReadWriter : ReadWriter [ExtractFields ] = macroRW
47
- implicit val simpleGeometryReadWriter : ReadWriter [GeoJSON .SimpleGeometry ] =
48
- ReadWriter .merge(tagName, macroRW[ GeoJSON . Point ], macroRW[ GeoJSON . MultiPoint ], macroRW [GeoJSON .LineString ],
49
- macroRW[GeoJSON .MultiLineString ], macroRW[GeoJSON .Polygon ], macroRW[GeoJSON .MultiPolygon ])
50
- implicit val geometryReadWriter : ReadWriter [GeoJSON .Geometry ] =
51
- ReadWriter .merge(tagName, macroRW[ GeoJSON . Point ], macroRW[ GeoJSON . MultiPoint ], macroRW [GeoJSON .LineString ],
52
- macroRW[GeoJSON .MultiLineString ], macroRW[GeoJSON .Polygon ], macroRW[GeoJSON .MultiPolygon ],
53
- macroRW[GeoJSON .GeometryCollection ])
54
- implicit val simpleGeoJsonReadWriter : ReadWriter [GeoJSON .SimpleGeoJSON ] =
55
- ReadWriter .merge(tagName, macroRW [GeoJSON .Feature ])
56
- implicit val geoJsonReadWriter : ReadWriter [GeoJSON .GeoJSON ] =
47
+ implicit val geoJsonReadWriter : ReadWriter [GeoJSON .GeoJSON ] = {
48
+ implicit val v1 : ReadWriter [GeoJSON .SimpleGeometry ] =
49
+ ReadWriter .merge(tagName, macroRW[GeoJSON .Point ], macroRW[GeoJSON .MultiPoint ], macroRW[GeoJSON .LineString ],
50
+ macroRW [GeoJSON .MultiLineString ], macroRW[ GeoJSON . Polygon ], macroRW[ GeoJSON . MultiPolygon ])
51
+ implicit val v2 : ReadWriter [GeoJSON .Geometry ] =
52
+ ReadWriter .merge(tagName, macroRW[GeoJSON .Point ], macroRW[GeoJSON .MultiPoint ], macroRW[GeoJSON .LineString ],
53
+ macroRW[GeoJSON .MultiLineString ], macroRW[ GeoJSON . Polygon ], macroRW[ GeoJSON . MultiPolygon ],
54
+ macroRW [GeoJSON .GeometryCollection ])
55
+ implicit val v3 : ReadWriter [GeoJSON .SimpleGeoJSON ] =
56
+ ReadWriter .merge(tagName, macroRW [GeoJSON .Feature ])
57
57
ReadWriter .merge(tagName, macroRW[GeoJSON .Feature ], macroRW[GeoJSON .FeatureCollection ])
58
+ }
58
59
implicit val gitHubActionsAPIFromTos : ReadWriter [GitHubActionsAPI .Response ] = {
59
60
implicit val v1 : ReadWriter [Boolean ] =
60
61
ReadWriter .join(strReader(x => java.lang.Boolean .parseBoolean(x.toString)), strWriter[Boolean ])
0 commit comments