Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 819 for Examples (0.18 seconds)

  1. docs/en/docs/tutorial/schema-extra-example.md

    ## `examples` in JSON Schema - OpenAPI { #examples-in-json-schema-openapi }
    
    When using any of:
    
    * `Path()`
    * `Query()`
    * `Header()`
    * `Cookie()`
    * `Body()`
    * `Form()`
    * `File()`
    
    you can also declare a group of `examples` with additional information that will be added to their **JSON Schemas** inside of **OpenAPI**.
    
    ### `Body` with `examples` { #body-with-examples }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/schema-extra-example.md

    もちろん、複数の`examples`を渡すこともできます:
    
    {* ../../docs_src/schema_extra_example/tutorial004_an_py310.py hl[23:38] *}
    
    この場合、examplesはそのボディデータの内部**JSON Schema**の一部になります。
    
    それでも、<dfn title="2023-08-26">執筆時点</dfn>では、ドキュメントUIの表示を担当するツールであるSwagger UIは、**JSON Schema**内のデータに対して複数の例を表示することをサポートしていません。しかし、回避策については以下を読んでください。
    
    ### OpenAPI固有の`examples` { #openapi-specific-examples }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  3. tests/test_schema_extra_examples.py

            item: Item = Body(
                examples=[
                    {"data": "Data in Body examples, example1"},
                    {"data": "Data in Body examples, example2"},
                ],
            ),
        ):
            return item
    
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.post("/example_examples/")
            def example_examples(
                item: Item = Body(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  4. fastapi/params.py

            json_schema_extra: dict[str, Any] | None = None,
            **extra: Any,
        ):
            if example is not _Unset:
                warnings.warn(
                    "`example` has been deprecated, please use `examples` instead",
                    category=FastAPIDeprecationWarning,
                    stacklevel=4,
                )
            self.example = example
            self.include_in_schema = include_in_schema
            self.openapi_examples = openapi_examples
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/schema-extra-example.md

    ### OpenAPI 特定的 `examples` { #openapi-specific-examples }
    
    在 **JSON Schema** 支援 `examples` 之前,OpenAPI 就已支援另一個同名的欄位 `examples`。
    
    這個「OpenAPI 特定」的 `examples` 位於 OpenAPI 規範的另一個區塊:在每個「路徑操作」的詳細資訊中,而不是在各個 JSON Schema 內。
    
    而 Swagger UI 早已支援這個欄位,因此你可以用它在文件 UI 中顯示不同的範例。
    
    這個 OpenAPI 特定欄位 `examples` 的結構是一個包含「多個範例」的 `dict`(而非 `list`),每個範例都可包含會一併加入到 **OpenAPI** 的額外資訊。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  6. tests/test_openapi_examples.py

        data: str
    
    
    @app.post("/examples/")
    def examples(
        item: Item = Body(
            examples=[
                {"data": "Data in Body examples, example1"},
            ],
            openapi_examples={
                "Example One": {
                    "summary": "Example One Summary",
                    "description": "Example One Description",
                    "value": {"data": "Data in Body examples, example1"},
                },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 16.4K bytes
    - Click Count (0)
  7. fastapi/param_functions.py

            ),
        ] = _Unset,
        examples: Annotated[
            list[Any] | None,
            Doc(
                """
                Example values for this field.
    
                Read more about it in the
                [FastAPI docs for Declare Request Example Data](https://fastapi.tiangolo.com/tutorial/schema-extra-example/)
                """
            ),
        ] = None,
        example: Annotated[
            Any | None,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 68K bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/schema-extra-example.md

    ### OpenAPI 特定的 `examples` { #openapi-specific-examples }
    
    在 JSON Schema 支持 `examples` 之前,OpenAPI 就已支持一个同名但不同的字段 `examples`。
    
    这个面向 OpenAPI 的 `examples` 位于 OpenAPI 规范的另一处。它放在每个路径操作的详细信息中,而不是每个 JSON Schema 里。
    
    而 Swagger UI 早就支持这个特定的 `examples` 字段。因此,你可以用它在文档 UI 中展示不同的示例。
    
    这个 OpenAPI 特定字段 `examples` 的结构是一个包含多个示例的 `dict`(而不是一个 `list`),每个示例都包含会被添加到 OpenAPI 的额外信息。
    
    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)
  9. docs/en/docs/deployment/concepts.md

    ### Example Tools to Run at Startup { #example-tools-to-run-at-startup }
    
    Some examples of the tools that can do this job are:
    
    * Docker
    * Kubernetes
    * Docker Compose
    * Docker in Swarm Mode
    * Systemd
    * Supervisor
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 18.5K bytes
    - Click Count (1)
  10. docs/fr/llm-prompt.md

    ### Quotes
    
    - Convert neutral double quotes (`"`) to French guillemets (`«` and `»`).
    
    - Do not convert quotes inside code blocks, inline code, paths, URLs, or anything wrapped in backticks.
    
    Examples:
    
    Source (English):
    
    ```
    "Hello world"
    “Hello Universe”
    "He said: 'Hello'"
    "The module is `__main__`"
    ```
    
    Result (French):
    
    ```
    "Hello world"
    “Hello Universe”
    "He said: 'Hello'"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 16 11:57:08 GMT 2026
    - 3.6K bytes
    - Click Count (0)
Back to Top