@@ -18,8 +18,6 @@ module Servant.Swagger.Internal where
18
18
19
19
import Control.Lens
20
20
import Data.Aeson
21
- import Data.HashMap.Strict (HashMap )
22
- import qualified Data.HashMap.Strict as HashMap
23
21
import Data.Monoid
24
22
import Data.Proxy
25
23
import qualified Data.Swagger as Swagger
@@ -84,10 +82,10 @@ subOperations sub _ = operationsOf (toSwagger sub)
84
82
85
83
-- | Make a singleton Swagger spec (with only one endpoint).
86
84
-- For endpoints with no content see 'mkEndpointNoContent'.
87
- mkEndpoint :: forall a cs hs proxy proxy' method status .
85
+ mkEndpoint :: forall a cs hs proxy method status .
88
86
(ToSchema a , AllAccept cs , AllToResponseHeader hs , SwaggerMethod method , KnownNat status )
89
87
=> FilePath -- ^ Endpoint path.
90
- -> proxy' (Verb method status cs (Headers hs a )) -- ^ Method, content-types, headers and response.
88
+ -> proxy (Verb method status cs (Headers hs a )) -- ^ Method, content-types, headers and response.
91
89
-> Swagger
92
90
mkEndpoint path proxy
93
91
= mkEndpointWithSchemaRef (Just ref) path proxy
@@ -96,10 +94,10 @@ mkEndpoint path proxy
96
94
(defs, ref) = runDeclare (declareSchemaRef (Proxy :: Proxy a )) mempty
97
95
98
96
-- | Make a singletone 'Swagger' spec (with only one endpoint) and with no content schema.
99
- mkEndpointNoContent :: forall nocontent cs hs proxy proxy' method status .
97
+ mkEndpointNoContent :: forall nocontent cs hs proxy method status .
100
98
(AllAccept cs , AllToResponseHeader hs , SwaggerMethod method , KnownNat status )
101
99
=> FilePath -- ^ Endpoint path.
102
- -> proxy' (Verb method status cs (Headers hs nocontent )) -- ^ Method, content-types, headers and response.
100
+ -> proxy (Verb method status cs (Headers hs nocontent )) -- ^ Method, content-types, headers and response.
103
101
-> Swagger
104
102
mkEndpointNoContent path proxy
105
103
= mkEndpointWithSchemaRef Nothing path proxy
0 commit comments