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 90f7a44 commit dcc3154Copy full SHA for dcc3154
src/Servant/OpenApi/Internal.hs
@@ -287,6 +287,12 @@ instance (HasOpenApi sub) => HasOpenApi (RemoteHost :> sub) where
287
instance (HasOpenApi sub) => HasOpenApi (HttpVersion :> sub) where
288
toOpenApi _ = toOpenApi (Proxy :: Proxy sub)
289
290
+#if MIN_VERSION_servant(0,20,0)
291
+-- | @'WithResource'@ combinator does not change our specification at all.
292
+instance (HasOpenApi sub) => HasOpenApi (WithResource res :> sub) where
293
+ toOpenApi _ = toOpenApi (Proxy :: Proxy sub)
294
+#endif
295
+
296
-- | @'WithNamedContext'@ combinator does not change our specification at all.
297
instance (HasOpenApi sub) => HasOpenApi (WithNamedContext x c sub) where
298
0 commit comments