Skip to content

Commit b5dce5f

Browse files
committed
Amended doc for empty response.
1 parent 4db52a4 commit b5dce5f

File tree

1 file changed

+2
-1
lines changed
  • libs/wire-api-federation/src/Wire/API/Federation/API

1 file changed

+2
-1
lines changed

libs/wire-api-federation/src/Wire/API/Federation/API/Common.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ import Test.QuickCheck
2323
import Wire.Arbitrary
2424

2525
-- | This is equivalent to '()', but JSONifies to an empty object instead of an
26-
-- empty array.
26+
-- empty array. Returning an empty object gives us more flexibility, allowing
27+
-- us to expand the response without breaking compatibility.
2728
data EmptyResponse = EmptyResponse
2829
deriving stock (Eq, Show, Generic)
2930
deriving (Arbitrary) via (GenericUniform EmptyResponse)

0 commit comments

Comments
 (0)