- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for syntaxHighlight (0.08 sec)
-
tests/test_tutorial/test_configure_swagger_ui/test_tutorial001.py
client = TestClient(app) def test_swagger_ui(): response = client.get("/docs") assert response.status_code == 200, response.text assert ( '"syntaxHighlight": false' in response.text ), "syntaxHighlight should be included and converted to JSON" assert ( '"dom_id": "#swagger-ui"' in response.text ), "default configs should be preserved"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 1.4K bytes - Viewed (0) -
tests/test_tutorial/test_configure_swagger_ui/test_tutorial002.py
def test_swagger_ui(): response = client.get("/docs") assert response.status_code == 200, response.text assert ( '"syntaxHighlight": false' not in response.text ), "not used parameters should not be included" assert ( '"syntaxHighlight.theme": "obsidian"' in response.text ), "parameters with middle dots should be included in a JSON compatible way" assert (
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 1.5K bytes - Viewed (0) -
docs/de/docs/how-to/configure-swagger-ui.md
Ohne Änderung der Einstellungen ist die Syntaxhervorhebung standardmäßig aktiviert: <img src="/img/tutorial/extending-openapi/image02.png"> Sie können sie jedoch deaktivieren, indem Sie `syntaxHighlight` auf `False` setzen: ```Python hl_lines="3" {!../../docs_src/configure_swagger_ui/tutorial001.py!} ``` ... und dann zeigt die Swagger-Oberfläche die Syntaxhervorhebung nicht mehr an:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.3K bytes - Viewed (0) -
docs_src/configure_swagger_ui/tutorial001.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 205 bytes - Viewed (0) -
docs/pt/docs/how-to/configure-swagger-ui.md
Sem alterar as configurações, o destaque de sintaxe é habilitado por padrão: <img src="/img/tutorial/extending-openapi/image02.png"> Mas você pode desabilitá-lo definindo `syntaxHighlight` como `False`: ```Python hl_lines="3" {!../../docs_src/configure_swagger_ui/tutorial001.py!} ``` ...e então o Swagger UI não mostrará mais o destaque de sintaxe:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.1K bytes - Viewed (0) -
docs/en/docs/how-to/configure-swagger-ui.md
But you can disable it by setting `syntaxHighlight` to `False`: {* ../../docs_src/configure_swagger_ui/tutorial001.py hl[3] *} ...and then Swagger UI won't show the syntax highlighting anymore: <img src="/img/tutorial/extending-openapi/image03.png"> ## Change the Theme The same way you could set the syntax highlighting theme with the key `"syntaxHighlight.theme"` (notice that it has a dot in the middle):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 26 16:50:52 UTC 2024 - 2.7K bytes - Viewed (0) -
docs/zh/docs/how-to/configure-swagger-ui.md
当没有改变设置时,语法高亮默认启用: <img src="/img/tutorial/extending-openapi/image02.png"> 但是你可以通过设置 `syntaxHighlight` 为 `False` 来禁用 Swagger UI 中的语法高亮: ```Python hl_lines="3" {!../../docs_src/configure_swagger_ui/tutorial001.py!} ``` ...在此之后,Swagger UI 将不会高亮代码: <img src="/img/tutorial/extending-openapi/image03.png"> ## 改变主题 同样地,你也可以通过设置键 `"syntaxHighlight.theme"` 来设置语法高亮主题(注意中间有一个点): ```Python hl_lines="3"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.6K bytes - Viewed (0) -
docs_src/configure_swagger_ui/tutorial002.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 216 bytes - Viewed (0) -
tests/test_tutorial/test_configure_swagger_ui/test_tutorial003.py
), "overridden configs should be preserved" assert ( '"deepLinking": true' not in response.text ), "overridden configs should not include the old value" assert ( '"syntaxHighlight": false' not in response.text ), "not used parameters should not be included" assert ( '"dom_id": "#swagger-ui"' in response.text ), "default configs should be preserved"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 1.5K bytes - Viewed (0)