Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for syntaxHighlight (0.06 sec)

  1. 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 Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  2. 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:
    
    {* ../../docs_src/configure_swagger_ui/tutorial001_py39.py hl[3] *}
    
    ... und dann zeigt die Swagger-Oberfläche die Syntaxhervorhebung nicht mehr an:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  3. 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`:
    
    {* ../../docs_src/configure_swagger_ui/tutorial001_py39.py hl[3] *}
    
    ...e então o Swagger UI não mostrará mais o destaque de sintaxe:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. docs_src/configure_swagger_ui/tutorial002_py39.py

    from fastapi import FastAPI
    
    app = FastAPI(swagger_ui_parameters={"syntaxHighlight": {"theme": "obsidian"}})
    
    
    @app.get("/users/{username}")
    async def read_user(username: str):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 221 bytes
    - Viewed (0)
  5. docs/ko/docs/how-to/configure-swagger-ui.md

    <img src="/img/tutorial/extending-openapi/image02.png">
    
    그러나 `syntaxHighlight`를 `False`로 설정하여 구문 강조 기능을 비활성화할 수 있습니다:
    
    {* ../../docs_src/configure_swagger_ui/tutorial001.py hl[3] *}
    
    ...그럼 Swagger UI에서 더 이상 구문 강조 기능이 표시되지 않습니다:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    ## 테마 변경
    
    동일한 방식으로 `"syntaxHighlight.theme"` 키를 사용하여 구문 강조 테마를 설정할 수 있습니다 (중간에 점이 포함된 것을 참고하십시오).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Dec 09 12:25:19 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_configure_swagger_ui/test_tutorial002.py

    client = TestClient(app)
    
    
    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"
        )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  7. 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 Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  8. docs/ru/docs/how-to/configure-swagger-ui.md

    Но вы можете отключить её, установив `syntaxHighlight` в `False`:
    
    {* ../../docs_src/configure_swagger_ui/tutorial001_py39.py hl[3] *}
    
    …и после этого Swagger UI больше не будет показывать подсветку синтаксиса:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    ## Изменить тему { #change-the-theme }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. 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_py39.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 { #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 Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  10. docs/es/docs/how-to/configure-swagger-ui.md

    Sin cambiar la configuración, el resaltado de sintaxis está activado por defecto:
    
    <img src="/img/tutorial/extending-openapi/image02.png">
    
    Pero puedes desactivarlo estableciendo `syntaxHighlight` en `False`:
    
    {* ../../docs_src/configure_swagger_ui/tutorial001_py39.py hl[3] *}
    
    ...y entonces Swagger UI ya no mostrará el resaltado de sintaxis:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top