Search Options

Results per page
Sort
Preferred Languages
Advance

Results 591 - 600 of 2,167 for myitem (0.21 sec)

  1. tests/test_tutorial/test_body_nested_models/test_tutorial005.py

                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
                "tags": ["foo", "bar", "foo"],
                "image": {"url": "http://example.com/image.png", "name": "example image"},
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "item_id": 123,
            "item": {
                "name": "Foo",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. docs_src/body_fields/tutorial001_an_py310.py

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = Field(
            default=None, title="The description of the item", max_length=300
        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Annotated[Item, Body(embed=True)]):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 563 bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/exception/ConverterRuntimeExceptionTest.java

        /**
         * @throws Exception
         */
        @Test
        public void test() throws Exception {
            final ConverterRuntimeException e = new ConverterRuntimeException("hoge", "xxx", new RuntimeException("cause"));
            System.out.println(e.getMessage());
            assertThat(e.getPropertyName(), is("hoge"));
            assertThat(e.getValue(), is((Object) "xxx"));
            assertThat(e.getCause().getMessage(), is("cause"));
        }
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  4. apache-maven/README.txt

      Documentation
      -------------
    
      The most up-to-date documentation can be found at https://maven.apache.org/.
    
      Release Notes
      -------------
    
      The full list of changes, system requirements and related can be found at https://maven.apache.org/docs/history.html.
    
      Installing Maven
      ----------------
    
      For complete documentation see https://maven.apache.org/download.html#Installation
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Aug 12 21:54:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. tests/test_custom_schema_fields.py

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
    
        description: Annotated[
            Optional[str], WithJsonSchema({"type": ["string", "null"]})
        ] = None
    
        model_config = {
            "json_schema_extra": {
                "x-something-internal": {"level": 4},
            }
        }
    
    
    @app.get("/foo", response_model=Item)
    def foo():
        return {"name": "Foo item"}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  6. docs_src/body/tutorial002_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    app = FastAPI()
    
    
    @app.post("/items/")
    async def create_item(item: Item):
        item_dict = item.model_dump()
        if item.tax is not None:
            price_with_tax = item.price + item.tax
            item_dict.update({"price_with_tax": price_with_tax})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 447 bytes
    - Viewed (0)
  7. cmd/metrics-resource.go

    			labels := map[string]string{}
    			ts := hm.CPU.TimesStat
    			if ts != nil {
    				tot := ts.User + ts.System + ts.Idle + ts.Iowait + ts.Nice + ts.Steal
    				cpuUserVal := math.Round(ts.User/tot*100*100) / 100
    				updateResourceMetrics(cpuSubsystem, cpuUser, cpuUserVal, labels, false)
    				cpuSystemVal := math.Round(ts.System/tot*100*100) / 100
    				updateResourceMetrics(cpuSubsystem, cpuSystem, cpuSystemVal, labels, false)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 10 18:57:03 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_body_nested_models/test_tutorial006.py

        )
        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": IsList("foo", "bar", check_order=False),
                "images": [
                    {"url": "http://example.com/image.png", "name": "example image"}
                ],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  9. src/main/resources/fess_message_ko.properties

    # ---------------
    constraints.AssertFalse.message = {item}는 false여야 합니다.
    constraints.AssertTrue.message = {item}는 true여야 합니다.
    constraints.DecimalMax.message = {item}는 {value}보다 작아야 합니다.
    constraints.DecimalMin.message = {item}는 {value}보다 커야 합니다.
    constraints.Digits.message = {item}는 숫자여야 합니다. (기대값: <숫자>.<숫자>)
    constraints.Future.message = {item}는 미래의 값이어야 합니다.
    constraints.Max.message = {item}는 {value} 이하여야 합니다.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Jul 05 02:36:47 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. docs_src/separate_openapi_schemas/tutorial001_py39.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: Optional[str] = None
    
    
    app = FastAPI()
    
    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 483 bytes
    - Viewed (0)
Back to top