mirror of https://github.com/tiangolo/fastapi.git
Remove outdated `SwaggerUIBundle.SwaggerUIStandalonePreset` from `presets`
This commit is contained in:
parent
597b435ae7
commit
02d8c6e258
|
|
@ -60,8 +60,7 @@ FastAPI also includes these JavaScript-only `presets` settings:
|
|||
|
||||
```JavaScript
|
||||
presets: [
|
||||
SwaggerUIBundle.presets.apis,
|
||||
SwaggerUIBundle.SwaggerUIStandalonePreset
|
||||
SwaggerUIBundle.presets.apis
|
||||
]
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -141,7 +141,6 @@ def get_swagger_ui_html(
|
|||
html += """
|
||||
presets: [
|
||||
SwaggerUIBundle.presets.apis,
|
||||
SwaggerUIBundle.SwaggerUIStandalonePreset
|
||||
],
|
||||
})"""
|
||||
|
||||
|
|
|
|||
|
|
@ -18,9 +18,6 @@ def test_swagger_ui():
|
|||
assert "SwaggerUIBundle.presets.apis," in response.text, (
|
||||
"default configs should be preserved"
|
||||
)
|
||||
assert "SwaggerUIBundle.SwaggerUIStandalonePreset" in response.text, (
|
||||
"default configs should be preserved"
|
||||
)
|
||||
assert '"layout": "BaseLayout",' in response.text, (
|
||||
"default configs should be preserved"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -21,9 +21,6 @@ def test_swagger_ui():
|
|||
assert "SwaggerUIBundle.presets.apis," in response.text, (
|
||||
"default configs should be preserved"
|
||||
)
|
||||
assert "SwaggerUIBundle.SwaggerUIStandalonePreset" in response.text, (
|
||||
"default configs should be preserved"
|
||||
)
|
||||
assert '"layout": "BaseLayout",' in response.text, (
|
||||
"default configs should be preserved"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -24,9 +24,6 @@ def test_swagger_ui():
|
|||
assert "SwaggerUIBundle.presets.apis," in response.text, (
|
||||
"default configs should be preserved"
|
||||
)
|
||||
assert "SwaggerUIBundle.SwaggerUIStandalonePreset" in response.text, (
|
||||
"default configs should be preserved"
|
||||
)
|
||||
assert '"layout": "BaseLayout",' in response.text, (
|
||||
"default configs should be preserved"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue