@@ -846,6 +846,23 @@ data HttpSchemeType
846 | HttpSchemeCustom Text
846 | HttpSchemeCustom Text
847 deriving (Eq, Show, Generic, Data, Typeable)
847 deriving (Eq, Show, Generic, Data, Typeable)
851+-- >>> encode (SecuritySchemeHttp (HttpSchemeBearer Nothing))
852+-- "{\"scheme\":\"bearer\",\"type\":\"http\"}"
854+-- >>> encode (SecuritySchemeHttp (HttpSchemeBearer (Just "jwt")))
855+-- "{\"scheme\":\"bearer\",\"type\":\"http\",\"bearerFormat\":\"jwt\"}"
857+-- >>> encode (SecuritySchemeHttp HttpSchemeBasic)
858+-- "{\"scheme\":\"basic\",\"type\":\"http\"}"
860+-- >>> encode (SecuritySchemeHttp (HttpSchemeCustom "CANARY"))
861+-- "{\"scheme\":\"CANARY\",\"type\":\"http\"}"
863+-- >>> encode (SecuritySchemeApiKey (ApiKeyParams "id" ApiKeyCookie))
864+-- "{\"in\":\"cookie\",\"name\":\"id\",\"type\":\"apiKey\"}"
849data SecuritySchemeType
866data SecuritySchemeType
850 = SecuritySchemeHttp HttpSchemeType
867 = SecuritySchemeHttp HttpSchemeType
851 | SecuritySchemeApiKey ApiKeyParams
868 | SecuritySchemeApiKey ApiKeyParams