Skip to content

Commit

Permalink
Amended doc for empty response.
Browse files Browse the repository at this point in the history
  • Loading branch information
elland committed Jun 21, 2023
1 parent 4db52a4 commit 546befa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import Test.QuickCheck
import Wire.Arbitrary

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

0 comments on commit 546befa

Please sign in to comment.