forked from loafle/openapi-generator-original
[Haskell] fix use of isBasic condition (#15612)
This commit is contained in:
parent
3990b73ff3
commit
80c85eff1b
@ -153,7 +153,7 @@ to{{{x-param-name-type}}} = \case{{#allowableValues}}{{#enumVars}}
|
|||||||
|
|
||||||
{{#authMethods}}{{#-first}}-- * Auth Methods
|
{{#authMethods}}{{#-first}}-- * Auth Methods
|
||||||
|
|
||||||
{{/-first}}{{#isBasic}}-- ** {{name}}
|
{{/-first}}{{#isBasicBasic}}-- ** {{name}}
|
||||||
data {{name}} =
|
data {{name}} =
|
||||||
{{name}} B.ByteString B.ByteString -- ^ username password
|
{{name}} B.ByteString B.ByteString -- ^ username password
|
||||||
deriving (P.Eq, P.Show, P.Typeable)
|
deriving (P.Eq, P.Show, P.Typeable)
|
||||||
@ -167,7 +167,7 @@ instance AuthMethod {{name}} where
|
|||||||
else req
|
else req
|
||||||
where cred = BC.append "Basic " (B64.encode $ BC.concat [ user, ":", pw ])
|
where cred = BC.append "Basic " (B64.encode $ BC.concat [ user, ":", pw ])
|
||||||
|
|
||||||
{{/isBasic}}{{#isApiKey}}-- ** {{name}}
|
{{/isBasicBasic}}{{#isApiKey}}-- ** {{name}}
|
||||||
data {{name}} =
|
data {{name}} =
|
||||||
{{name}} Text -- ^ secret
|
{{name}} Text -- ^ secret
|
||||||
deriving (P.Eq, P.Show, P.Typeable)
|
deriving (P.Eq, P.Show, P.Typeable)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user