Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 44 for 3548 (0.02 seconds)

  1. tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py

                "price": 35.4,
                "tax": 3.2,
                "tags": ["foo", "bar", "foo"],
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "item_id": 123,
            "item": {
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
                "tags": tags_expected,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  2. docs_src/schema_extra_example/tutorial004_an_py39.py

                    {
                        "name": "Foo",
                        "description": "A very nice Item",
                        "price": 35.4,
                        "tax": 3.2,
                    },
                    {
                        "name": "Bar",
                        "price": "35.4",
                    },
                    {
                        "name": "Baz",
                        "price": "thirty five point four",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Jul 01 16:43:29 GMT 2023
    - 936 bytes
    - Click Count (0)
  3. docs_src/schema_extra_example/tutorial004_py39.py

            examples=[
                {
                    "name": "Foo",
                    "description": "A very nice Item",
                    "price": 35.4,
                    "tax": 3.2,
                },
                {
                    "name": "Bar",
                    "price": "35.4",
                },
                {
                    "name": "Baz",
                    "price": "thirty five point four",
                },
            ],
        ),
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 824 bytes
    - Click Count (0)
  4. docs_src/schema_extra_example/tutorial002_py310.py

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str = Field(examples=["Foo"])
        description: str | None = Field(default=None, examples=["A very nice Item"])
        price: float = Field(examples=[35.4])
        tax: float | None = Field(default=None, examples=[3.2])
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 479 bytes
    - Click Count (0)
  5. docs_src/schema_extra_example/tutorial005_an_py310.py

                        "value": {
                            "name": "Foo",
                            "description": "A very nice Item",
                            "price": 35.4,
                            "tax": 3.2,
                        },
                    },
                    "converted": {
                        "summary": "An example with converted data",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 1.5K bytes
    - Click Count (0)
  6. docs_src/schema_extra_example/tutorial005_py39.py

                        "price": 35.4,
                        "tax": 3.2,
                    },
                },
                "converted": {
                    "summary": "An example with converted data",
                    "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
                    "value": {
                        "name": "Bar",
                        "price": "35.4",
                    },
                },
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  7. tests/test_tutorial/test_schema_extra_example/test_tutorial003.py

    
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
            },
        )
        assert response.status_code == 200
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        ImmutableSetMultimap<String, Integer> badEntries =
                            ImmutableSetMultimap.of("foo", 314, "one", 159, "two", 265, "bar", 358);
                        multimap.putAll(badEntries);
                        return Multimaps.filterEntries(
                            multimap, not(Predicates.in(badEntries.entries())));
                      }
                    })
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Sep 24 22:52:18 GMT 2025
    - 28.6K bytes
    - Click Count (0)
  9. docs_src/schema_extra_example/tutorial001_pv1_py310.py

        class Config:
            schema_extra = {
                "examples": [
                    {
                        "name": "Foo",
                        "description": "A very nice Item",
                        "price": 35.4,
                        "tax": 3.2,
                    }
                ]
            }
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 634 bytes
    - Click Count (0)
  10. docs_src/schema_extra_example/tutorial001_py39.py

        model_config = {
            "json_schema_extra": {
                "examples": [
                    {
                        "name": "Foo",
                        "description": "A very nice Item",
                        "price": 35.4,
                        "tax": 3.2,
                    }
                ]
            }
        }
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 684 bytes
    - Click Count (0)
Back to Top