Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 591 - 600 of 841 for custom1 (0.05 seconds)

  1. docs/ko/docs/advanced/additional-responses.md

    이 모든 내용은 OpenAPI에 결합되어 포함되고, API 문서에 표시됩니다:
    
    <img src="/img/tutorial/additional-responses/image01.png">
    
    ## 미리 정의된 응답과 커스텀 응답 결합하기 { #combine-predefined-responses-and-custom-ones }
    
    여러 *경로 처리*에 적용되는 미리 정의된 응답이 필요할 수도 있지만, 각 *경로 처리*마다 필요한 커스텀 응답과 결합하고 싶을 수도 있습니다.
    
    그런 경우 Python의 `dict` “unpacking” 기법인 `**dict_to_unpack`을 사용할 수 있습니다:
    
    ```Python
    old_dict = {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 9.6K bytes
    - Click Count (0)
  2. docs/zh/docs/advanced/additional-responses.md

    所有这些都会被合并并包含到你的 OpenAPI 中,并显示在 API 文档里:
    
    <img src="/img/tutorial/additional-responses/image01.png">
    
    ## 组合预定义响应和自定义响应 { #combine-predefined-responses-and-custom-ones }
    
    你可能希望有一些适用于许多*路径操作*的预定义响应,但同时又想把它们与每个*路径操作*所需的自定义响应组合在一起。
    
    在这些情况下,你可以使用 Python 的“解包”`dict` 的技巧 `**dict_to_unpack`:
    
    ```Python
    old_dict = {
        "old key": "old value",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  3. fastapi/encoders.py

        custom_encoder: Annotated[
            dict[Any, Callable[[Any], Any]] | None,
            Doc(
                """
                Pydantic's `custom_encoder` parameter, passed to Pydantic models to define
                a custom encoder.
                """
            ),
        ] = None,
        sqlalchemy_safe: Annotated[
            bool,
            Doc(
                """
                Exclude from the output any fields that start with the name `_sa`.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  4. docs/zh/docs/advanced/stream-data.md

    ### 流式传输字节 { #stream-bytes }
    
    主要的用例之一是流式传输 `bytes` 而不是字符串,这当然可以做到。
    
    {* ../../docs_src/stream_data/tutorial001_py310.py ln[44:47] hl[47] *}
    
    ## 自定义 `PNGStreamingResponse` { #a-custom-pngstreamingresponse }
    
    在上面的示例中,虽然按字节流式传输了数据,但响应没有 `Content-Type` 头,因此客户端不知道接收到的数据类型。
    
    你可以创建 `StreamingResponse` 的自定义子类,将 `Content-Type` 头设置为你要流式传输的数据类型。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  5. internal/config/identity/openid/jwt.go

    	ErrTokenExpired = errors.New("token expired")
    )
    
    func updateClaimsExpiry(dsecs string, claims map[string]any) error {
    	expStr := claims["exp"]
    	if expStr == "" {
    		return ErrTokenExpired
    	}
    
    	// No custom duration requested, the claims can be used as is.
    	if dsecs == "" {
    		return nil
    	}
    
    	if _, err := auth.ExpToInt64(expStr); err != nil {
    		return err
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  6. CHANGELOG/CHANGELOG-1.9.md

        - [**API Machinery**](#api-machinery-3)
          - [**Admission Control**](#admission-control)
          - [**API & API server**](#api-&-api-server)
          - [**Audit**](#audit)
          - [**Custom Resources**](#custom-resources)
          - [**Other**](#other)
        - [**Apps**](#apps-1)
        - [**Auth**](#auth-3)
          - [**Audit**](#audit-1)
          - [**RBAC**](#rbac)
          - [**Other**](#other-1)
          - [**GCE**](#gce)
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Tue Nov 16 10:46:27 GMT 2021
    - 313.7K bytes
    - Click Count (0)
  7. helm-releases/minio-5.3.0.tgz

    second intervals between attempts $MC_COMMAND ; STATUS=$? ; done ; set -e ; # reset `e` as active return 0 } # runCommand ($@) # Run custom mc command runCommand() { ${MC} "$@" return $? } # Try connecting to MinIO instance {{- if .Values.tls.enabled }} scheme=https {{- else }} scheme=http {{- end }} connectToMinio $scheme {{ if .Values.customCommands }} # Run custom commands {{- range .Values.customCommands }} runCommand {{ .command }} {{- end }} {{- end }} minio/templates/_helper_policy.tpl {{-...
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 11 12:21:05 GMT 2024
    - 21.7K bytes
    - Click Count (0)
  8. schema/relationship_test.go

    						References: []Reference{
    							{ForeignKey: "OwnerType", ForeignSchema: "Toy", PrimaryValue: "users"},
    						},
    					},
    				},
    			},
    		})
    	})
    
    	t.Run("has one with custom polymorphic type and id", func(t *testing.T) {
    		type Toy struct {
    			ID    int
    			Name  string
    			RefId int
    			Type  string
    		}
    
    		type Cat struct {
    			ID   int
    			Name string
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Aug 18 11:44:52 GMT 2025
    - 26.5K bytes
    - Click Count (0)
  9. helm-releases/minio-5.0.11.tgz

    second intervals between attempts $MC_COMMAND ; STATUS=$? ; done ; set -e ; # reset `e` as active return 0 } # runCommand ($@) # Run custom mc command runCommand() { ${MC} "$@" return $? } # Try connecting to MinIO instance {{- if .Values.tls.enabled }} scheme=https {{- else }} scheme=http {{- end }} connectToMinio $scheme {{ if .Values.customCommands }} # Run custom commands {{- range .Values.customCommands }} runCommand {{ .command }} {{- end }} {{- end }} minio/templates/_helper_policy.tpl {{-...
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jun 21 19:29:09 GMT 2023
    - 20.3K bytes
    - Click Count (0)
  10. helm-releases/minio-5.0.12.tgz

    second intervals between attempts $MC_COMMAND ; STATUS=$? ; done ; set -e ; # reset `e` as active return 0 } # runCommand ($@) # Run custom mc command runCommand() { ${MC} "$@" return $? } # Try connecting to MinIO instance {{- if .Values.tls.enabled }} scheme=https {{- else }} scheme=http {{- end }} connectToMinio $scheme {{ if .Values.customCommands }} # Run custom commands {{- range .Values.customCommands }} runCommand {{ .command }} {{- end }} {{- end }} minio/templates/_helper_policy.tpl {{-...
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Jul 07 16:44:16 GMT 2023
    - 20.4K bytes
    - Click Count (0)
Back to Top