git.iko.soy/typeable/openapi3
on master help sign in
Aeson 2.0.3 compatibility (#38)

Taken from https://github.com/GetShopTV/swagger2/commit/d3f67b771f21a034f748aa3ffec9bf9c771ad2f5

commit85c368e74af642312298624c4e0da9e035d7b1a0 authorMaxim Koltsov <kolmax94@gmail.com> dateFri 4 Feb 2022, 23:45 (5 years ago) parent5eac87f
1 file changed+3
test/Data/OpenApi/Schema/ValidationSpec.hs+3
test/Data/OpenApi/Schema/ValidationSpec.hs+3
@@ -301,6 +301,8 @@ instance Eq ZonedTime where
301301-- Arbitrary instance for Data.Aeson.Value
302302-- ========================================================================
303303
304+-- These instances were introduces in aeson upstream in 2.0.3
305+#if !MIN_VERSION_aeson(2,0,3)
304306instance Arbitrary Value where
305307 -- Weights are almost random
306308 -- Uniform oneof tends not to build complex objects cause of recursive call.
@@ -319,3 +321,4 @@ instance Arbitrary v => Arbitrary (KeyMap.KeyMap v) where
319321instance Arbitrary Key.Key where
320322 arbitrary = Key.fromText <$> arbitrary
321323#endif
324+#endif