File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 66from litestar .config .cors import CORSConfig
77from litestar .middleware .rate_limit import RateLimitConfig
88from litestar .openapi .config import OpenAPIConfig
9- from litestar .openapi .plugins import ScalarRenderPlugin
9+ from litestar .openapi .plugins import (
10+ RapidocRenderPlugin ,
11+ RedocRenderPlugin ,
12+ ScalarRenderPlugin ,
13+ StoplightRenderPlugin ,
14+ SwaggerRenderPlugin ,
15+ YamlRenderPlugin ,
16+ )
1017
1118from .constants import GIT_SHA , Sentry
1219from .modules import controllers
2835app = Litestar (
2936 route_handlers = controllers ,
3037 middleware = [rate_limit_config .middleware ],
31- openapi_config = OpenAPIConfig (title = "Core" , version = GIT_SHA , render_plugins = [ScalarRenderPlugin ()]),
38+ openapi_config = OpenAPIConfig (
39+ title = "Core" ,
40+ version = GIT_SHA ,
41+ render_plugins = [
42+ RapidocRenderPlugin (),
43+ RedocRenderPlugin (),
44+ ScalarRenderPlugin (),
45+ StoplightRenderPlugin (),
46+ SwaggerRenderPlugin (),
47+ YamlRenderPlugin (),
48+ ],
49+ ),
3250 cors_config = cors_config ,
3351 compression_config = CompressionConfig (backend = "brotli" , brotli_gzip_fallback = True ),
3452)
You can’t perform that action at this time.
0 commit comments