We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4db52a4 commit b5dce5fCopy full SHA for b5dce5f
libs/wire-api-federation/src/Wire/API/Federation/API/Common.hs
@@ -23,7 +23,8 @@ import Test.QuickCheck
23
import Wire.Arbitrary
24
25
-- | This is equivalent to '()', but JSONifies to an empty object instead of an
26
--- empty array.
+-- empty array. Returning an empty object gives us more flexibility, allowing
27
+-- us to expand the response without breaking compatibility.
28
data EmptyResponse = EmptyResponse
29
deriving stock (Eq, Show, Generic)
30
deriving (Arbitrary) via (GenericUniform EmptyResponse)
0 commit comments