Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,727 for example2 (0.19 seconds)

  1. 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)
  2. 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)
  3. tests/test_file_and_form_order_issue_9116.py

    
    client = TestClient(app)
    
    
    @pytest.fixture
    def tmp_file_1(tmp_path: Path) -> Path:
        f = tmp_path / "example1.txt"
        f.write_text("foo")
        return f
    
    
    @pytest.fixture
    def tmp_file_2(tmp_path: Path) -> Path:
        f = tmp_path / "example2.txt"
        f.write_text("bar")
        return f
    
    
    @pytest.mark.parametrize("endpoint_path", ("/file_before_form", "/file_after_form"))
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/cors/CorsHandlerFactoryTest.java

        @Test
        public void test_add_and_get_multipleOrigins() {
            // Setup
            String origin1 = "https://example1.com";
            String origin2 = "https://example2.com";
            String origin3 = "https://example3.com";
            TestCorsHandler handler1 = new TestCorsHandler("handler1");
            TestCorsHandler handler2 = new TestCorsHandler("handler2");
            TestCorsHandler handler3 = new TestCorsHandler("handler3");
    
            // Execute
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.3K bytes
    - Click Count (0)
  5. architecture/standards/0006-use-of-provider-apis-in-gradle.md

    #### Non-calculated values
    
    These are inappropriate uses of lazy types:
    
    ```groovy
    class Example {
        Property<String> getSomeProperty()
    
        Example() {
            getSomeProperty().set("value")
            getSomeProperty().disallowChanges()
        }
    }
    
    class Example2 {
        Provider<String> getSomeProperty() {
            return project.provider(() -> "value")
        }
    }
    ```
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 05 12:39:41 GMT 2026
    - 10K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/resources/web-platform-test-urltestdata.txt

    http::b@www.example.com  s:http pass:b h:www.example.com p:/
    http:/:b@www.example.com  s:http pass:b h:www.example.com p:/
    http://:b@www.example.com  s:http pass:b h:www.example.com p:/
    http:/:@/www.example.com
    http://user@/www.example.com
    http:@/www.example.com
    http:/@/www.example.com
    http://@/www.example.com
    https:@/www.example.com
    http:a:b@/www.example.com
    http:/a:b@/www.example.com
    http://a:b@/www.example.com
    http::@/www.example.com
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 14.3K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

            data = "<img src=\"http://example/foo.jpg\">" //
                    + "<img src=\"http://example/bar.jpg\">";
            expected = "http://example/foo.jpg";
            assertGetThumbnailUrl(data, expected);
    
            data = "<img src=\"http://example/foo.jpg\">" //
                    + "<img src=\"http://example/bar.jpg\" width=\"100\" height=\"100\">";
            expected = "http://example/bar.jpg";
            assertGetThumbnailUrl(data, expected);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 62.9K bytes
    - Click Count (0)
  8. docs/fr/docs/tutorial/schema-extra-example.md

    ### `Body` avec `examples` { #body-with-examples }
    
    Ici, nous passons `examples` contenant un exemple des données attendues dans `Body()` :
    
    {* ../../docs_src/schema_extra_example/tutorial003_an_py310.py hl[22:29] *}
    
    ### Exemple dans l'interface des documents { #example-in-the-docs-ui }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 10.2K bytes
    - Click Count (0)
  9. 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)
  10. docs/de/docs/tutorial/schema-extra-example.md

    ### OpenAPI-spezifische `examples` { #openapi-specific-examples }
    
    Schon bevor **JSON Schema** `examples` unterstützte, unterstützte OpenAPI ein anderes Feld, das auch `examples` genannt wurde.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 10.4K bytes
    - Click Count (0)
Back to Top