File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/Servant/OpenApi/Internal/TypeLevel Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ Unreleased
2
+ ----------
3
+
4
+ * Do not count ` NoContent ` as a body type if it appears in `Headers
5
+ hdrs NoContent`.
6
+
1
7
1.1.8
2
8
-------
3
9
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ type AddBodyType c cs a as = If (Elem c cs) (a ': as) as
86
86
-- completely empty on responses to requests that only accept 'application/json', while
87
87
-- setting the content-type in the response accordingly.)
88
88
type family BodyTypes' c api :: [* ] where
89
- BodyTypes' c (Verb verb b cs (Headers hdrs a )) = AddBodyType c cs a ' []
89
+ BodyTypes' c (Verb verb b cs (Headers hdrs a )) = BodyTypes' c ( Verb verb b cs a )
90
90
BodyTypes' c (Verb verb b cs NoContent ) = '[]
91
91
BodyTypes' c (Verb verb b cs a ) = AddBodyType c cs a '[]
92
92
BodyTypes' c (ReqBody' mods cs a :> api ) = AddBodyType c cs a (BodyTypes' c api )
You can’t perform that action at this time.
0 commit comments