Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 83 for Syntax (0.08 seconds)

  1. docs/en/docs/how-to/configure-swagger-ui.md

    FastAPI converts the configurations to **JSON** to make them compatible with JavaScript, as that's what Swagger UI needs.
    
    ## Disable Syntax Highlighting { #disable-syntax-highlighting }
    
    For example, you could disable syntax highlighting in Swagger UI.
    
    Without changing the settings, syntax highlighting is enabled by default:
    
    <img src="/img/tutorial/extending-openapi/image02.png">
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/how-to/configure-swagger-ui.md

    `swagger_ui_parameters` 接受一個 dict,內容會直接傳給 Swagger UI 作為設定。
    
    FastAPI 會把這些設定轉換成 **JSON**,以便與 JavaScript 相容,因為 Swagger UI 需要的是這種格式。
    
    ## 停用語法醒目提示 { #disable-syntax-highlighting }
    
    例如,你可以在 Swagger UI 中停用語法醒目提示(syntax highlighting)。
    
    不更動設定時,語法醒目提示預設為啟用:
    
    <img src="/img/tutorial/extending-openapi/image02.png">
    
    但你可以將 `syntaxHighlight` 設為 `False` 來停用它:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  3. src/cmd/asm/internal/asm/parse.go

    					goto next
    				}
    			}
    			if tok == scanner.EOF {
    				p.errorf("unexpected EOF")
    				return "", "", nil, false
    			}
    			// Split operands on comma. Also, the old syntax on x86 for a "register pair"
    			// was AX:DX, for which the new syntax is DX, AX. Note the reordering.
    			if tok == '\n' || tok == ';' || (nesting == 0 && (tok == ',' || tok == ':')) {
    				if tok == ':' {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Feb 17 19:57:47 GMT 2026
    - 37.3K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/body-nested-models.md

    pass the internal type(s) as "type parameters" using square brackets: `[` and `]`
    
    ```Python
    my_list: list[str]
    ```
    
    That's all standard Python syntax for type declarations.
    
    Use that same standard syntax for model attributes with internal types.
    
    So, in our example, we can make `tags` be specifically a "list of strings":
    
    {* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  5. docs/ko/docs/how-to/configure-swagger-ui.md

    `swagger_ui_parameters`는 Swagger UI에 직접 전달된 구성을 포함하는 딕셔너리를 받습니다.
    
    FastAPI는 이 구성을 **JSON** 형식으로 변환하여 JavaScript와 호환되도록 합니다. 이는 Swagger UI에서 필요로 하는 형식입니다.
    
    ## 구문 강조 비활성화 { #disable-syntax-highlighting }
    
    예를 들어, Swagger UI에서 구문 강조 기능을 비활성화할 수 있습니다.
    
    설정을 변경하지 않으면, 기본적으로 구문 강조 기능이 활성화되어 있습니다:
    
    <img src="/img/tutorial/extending-openapi/image02.png">
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

        /**
         * Test that syntax errors are not cached and can be retried
         */
        @Test
        public void test_evaluate_syntaxErrorNotCached() {
            final GroovyEngine engine = new GroovyEngine();
            final Map<String, Object> params = new HashMap<>();
            final String invalidScript = "this is not valid {{{";
    
            // First call: syntax error returns null
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  7. docs/zh/docs/how-to/configure-swagger-ui.md

    如果需要配置它们,可以在创建 `FastAPI()` 应用对象时或调用 `get_swagger_ui_html()` 函数时传递 `swagger_ui_parameters` 参数。
    
    `swagger_ui_parameters` 接受一个字典,该字典会直接传递给 Swagger UI。
    
    FastAPI会将这些配置转换为 **JSON**,使其与 JavaScript 兼容,因为这是 Swagger UI 需要的。
    
    ## 禁用语法高亮 { #disable-syntax-highlighting }
    
    比如,你可以禁用 Swagger UI 中的语法高亮。
    
    当没有改变设置时,语法高亮默认启用:
    
    <img src="/img/tutorial/extending-openapi/image02.png">
    
    但是你可以通过设置 `syntaxHighlight` 为 `False` 来禁用 Swagger UI 中的语法高亮:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  8. tests/test_compat.py

        assert isinstance(result, list)
    
    
    def test_serialize_sequence_value_with_optional_list_pipe_union():
        """Test that serialize_sequence_value handles optional lists correctly (with new syntax)."""
        from fastapi._compat import v2
    
        field_info = FieldInfo(annotation=list[str] | None)
        field = v2.ModelField(name="items", field_info=field_info)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/Lists.java

       * advantage of <a
       * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
       * syntax</a>.
       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <E extends @Nullable Object> ArrayList<E> newArrayList() {
        return new ArrayList<>();
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.1K bytes
    - Click Count (0)
  10. docs/en/docs/python-types.md

    # Python Types Intro { #python-types-intro }
    
    Python has support for optional "type hints" (also called "type annotations").
    
    These **"type hints"** or annotations are a special syntax that allow declaring the <dfn title="for example: str, int, float, bool">type</dfn> of a variable.
    
    By declaring types for your variables, editors and tools can give you better support.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
Back to Top