Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,094 for example (0.05 sec)

  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 }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/schema-extra-example.md

    ### Специфические для OpenAPI `examples` { #openapi-specific-examples }
    
    Ещё до того как **JSON Schema** поддержала `examples`, в OpenAPI была поддержка другого поля, также называемого `examples`.
    
    Эти **специфические для OpenAPI** `examples` находятся в другой секции спецификации OpenAPI. Они находятся в **подробностях для каждой операции пути (обработчика пути)**, а не внутри каждого объекта Schema.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 14.8K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/schema-extra-example.md

    ### `Body` com `examples` { #body-with-examples }
    
    Aqui passamos `examples` contendo um exemplo dos dados esperados em `Body()`:
    
    {* ../../docs_src/schema_extra_example/tutorial003_an_py310.py hl[22:29] *}
    
    ### Exemplo na UI da documentação { #example-in-the-docs-ui }
    
    Com qualquer um dos métodos acima, ficaria assim em `/docs`:
    
    <img src="/img/tutorial/body-fields/image01.png">
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/schema-extra-example.md

    Mehr erfahren Sie am Ende dieser Seite.
    
    ///
    
    ## Zusätzliche Argumente für `Field` { #field-additional-arguments }
    
    Wenn Sie `Field()` mit Pydantic-Modellen verwenden, können Sie ebenfalls zusätzliche `examples` deklarieren:
    
    {* ../../docs_src/schema_extra_example/tutorial002_py310.py hl[2,8:11] *}
    
    ## `examples` im JSON-Schema – OpenAPI { #examples-in-json-schema-openapi }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/schema-extra-example.md

    ### `examples` específicos de OpenAPI { #openapi-specific-examples }
    
    Desde antes de que **JSON Schema** soportara `examples`, OpenAPI tenía soporte para un campo diferente también llamado `examples`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. docs/uk/docs/tutorial/schema-extra-example.md

    Тепер це поле `examples` є пріоритетним і замінює старе (і кастомне) поле `example`, яке стало застарілим.
    
    Нове поле `examples`  у JSON Schema — це **просто список (`list`)** прикладів, без додаткових метаданих (на відміну від OpenAPI).
    
    /// info | Інформація
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Jun 09 19:35:48 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  7. 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(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 32.2K bytes
    - Viewed (0)
  8. 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"},
                },
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerKotlinTest.kt

            .Builder()
            .add("*.example.com", certA1Sha256Pin)
            .add("a.example.com", certB1Sha256Pin)
            .add("b.example.com", certC1Sha256Pin)
            .build()
    
        val expectedPins =
          listOf(
            Pin("*.example.com", certA1Sha256Pin),
            Pin("a.example.com", certB1Sha256Pin),
          )
        assertThat(certificatePinner.findMatchingPins("a.example.com")).isEqualTo(expectedPins)
      }
    
      @Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerTest.kt

      }
    
      @Test
      fun successfulCheckForOneHostnameWithWildcardAndDirectCertificate() {
        val certificatePinner =
          CertificatePinner
            .Builder()
            .add("*.example.com", certA1Sha256Pin)
            .add("a.example.com", certB1Sha256Pin)
            .build()
        certificatePinner.check("a.example.com", listOf(certA1.certificate))
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top