Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 334 for Schemas (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/zh-hant/docs/alternatives.md

    ### [Pydantic](https://docs.pydantic.dev/) { #pydantic }
    
    Pydantic 是基於 Python 型別提示,定義資料驗證、序列化與文件(使用 JSON Schema)的函式庫。
    
    這讓它非常直覺。
    
    它可與 Marshmallow 相提並論。儘管在效能測試中它比 Marshmallow 更快。而且因為它基於相同的 Python 型別提示,編輯器支援也很出色。
    
    /// check | **FastAPI** 用於
    
    處理所有資料驗證、資料序列化與自動模型文件(基於 JSON Schema)。
    
    **FastAPI** 接著會把這些 JSON Schema 資料放入 OpenAPI 中,此外還有其他許多功能。
    
    ///
    
    ### [Starlette](https://www.starlette.dev/) { #starlette }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 20K bytes
    - Click Count (0)
  2. docs/ko/docs/advanced/generate-clients.md

    *경로 처리*에서 요청 페이로드와 응답 페이로드에 사용하는 모델을 `Item`, `ResponseMessage` 모델로 정의하고 있다는 점에 주목하세요.
    
    ### API 문서 { #api-docs }
    
    `/docs`로 이동하면, 요청으로 보낼 데이터와 응답으로 받을 데이터에 대한 **스키마(schemas)**가 있는 것을 볼 수 있습니다:
    
    <img src="/img/tutorial/generate-clients/image01.png">
    
    이 스키마는 앱에서 모델로 선언되었기 때문에 볼 수 있습니다.
    
    그 정보는 앱의 **OpenAPI 스키마**에서 사용할 수 있고, 이후 API 문서에 표시됩니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 11K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/schema-extra-example.md

    ///
    
    ### JSON Schema 的 `examples` 字段 { #json-schemas-examples-field }
    
    后来,JSON Schema 在新版本的规范中添加了 [`examples`](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.9.5) 字段。
    
    随后新的 OpenAPI 3.1.0 基于最新版本(JSON Schema 2020-12),其中包含了这个新的 `examples` 字段。
    
    现在,这个新的 `examples` 字段优先于旧的单个(且自定义的)`example` 字段,后者已被弃用。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  4. fastapi/openapi/models.py

        url: AnyUrl
    
    
    # Ref JSON Schema 2020-12: https://json-schema.org/draft/2020-12/json-schema-validation#name-type
    SchemaType = Literal[
        "array", "boolean", "integer", "null", "number", "object", "string"
    ]
    
    
    class Schema(BaseModelWithConfig):
        # Ref: JSON Schema 2020-12: https://json-schema.org/draft/2020-12/json-schema-core.html#name-the-json-schema-core-vocabu
        # Core Vocabulary
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/advanced/generate-clients.md

    注意這些 *路徑操作* 為請求與回應的有效載荷定義了所用的模型,使用了 `Item` 與 `ResponseMessage` 這兩個模型。
    
    ### API 文件 { #api-docs }
    
    如果你前往 `/docs`,你會看到其中包含了請求要送出的資料與回應接收的資料之**結構(schemas)**:
    
    <img src="/img/tutorial/generate-clients/image01.png">
    
    你之所以能看到這些結構,是因為它們在應用內以模型宣告了。
    
    這些資訊都在應用的 **OpenAPI 結構**中,並顯示在 API 文件裡。
    
    同樣包含在 OpenAPI 中的模型資訊,也可以用來**產生用戶端程式碼**。
    
    ### Hey API { #hey-api }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_body_updates/test_tutorial002.py

                                        "schema": {"$ref": "#/components/schemas/Item"}
                                    }
                                },
                                "required": True,
                            },
                        },
                    }
                },
                "components": {
                    "schemas": {
                        "Item": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  7. tests/test_duplicate_models_openapi.py

                },
                "components": {
                    "schemas": {
                        "Model": {"title": "Model", "type": "object", "properties": {}},
                        "Model2": {
                            "title": "Model2",
                            "required": ["a"],
                            "type": "object",
                            "properties": {"a": {"$ref": "#/components/schemas/Model"}},
                        },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_bigger_applications/test_main.py

                                    "content": {
                                        "application/json": {
                                            "schema": {
                                                "$ref": "#/components/schemas/HTTPValidationError"
                                            }
                                        }
                                    },
                                },
                            },
                        },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/advanced/additional-responses.md

                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/HTTPValidationError"
                        }
                    }
                }
            }
        }
    }
    ```
    
    這些 Schemas 會在 OpenAPI 中以參照的方式指向其他位置:
    
    ```JSON hl_lines="4-16"
    {
        "components": {
            "schemas": {
                "Message": {
                    "title": "Message",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_additional_responses/test_tutorial004.py

                                    "content": {
                                        "image/png": {},
                                        "application/json": {
                                            "schema": {"$ref": "#/components/schemas/Item"}
                                        },
                                    },
                                },
                                "422": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 10:53:47 GMT 2026
    - 5.5K bytes
    - Click Count (0)
Back to Top