Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 402 for item_2 (0.16 seconds)

  1. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            assertFalse(item1.equals(item3));
    
            // Item with null output should not equal item with different inputs
            CharMappingItem item4 = new CharMappingItem(4L, inputs3, null);
            assertFalse(item1.equals(item4));
    
            // Symmetry
            assertTrue(item1.equals(item2));
            assertTrue(item2.equals(item1));
        }
    
        @Test
        public void test_toString() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16K bytes
    - Click Count (0)
  2. tests/query_test.go

    		Number2: 200,
    		Number3: 300.1,
    		Now:     &now,
    		Item1: &QueryResetItem{
    			ID:   "u_1_1",
    			Name: "item_1_1",
    		},
    		Item2: &QueryResetItem{
    			ID:   "u_1_2",
    			Name: "item_1_2",
    		},
    	}
    
    	q2 := QueryResetNullValue{
    		Item1: &QueryResetItem{
    			ID:   "u_2_1",
    			Name: "item_2_1",
    		},
    		Item2: &QueryResetItem{
    			ID:   "u_2_2",
    			Name: "item_2_2",
    		},
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Tue Jul 22 06:21:04 GMT 2025
    - 51K bytes
    - Click Count (0)
  3. docs/ja/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    ```
    
    場合によっては、同じ FastAPI の path operation 内で、Pydantic v1 と v2 の両方のモデルを扱うことも可能です:
    
    {* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *}
    
    上の例では、入力モデルは Pydantic v1、出力モデル(`response_model=ItemV2` で定義)は Pydantic v2 です。
    
    ### Pydantic v1 のパラメータ { #pydantic-v1-parameters }
    
    Pydantic v1 のモデルで `Body`、`Query`、`Form` などの FastAPI 固有のパラメータユーティリティを使う必要がある場合、v2 への移行が完了するまでの間は `fastapi.temp_pydantic_v1_params` からインポートできます:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  4. docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py

    from pydantic.v1 import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        size: float
    
    
    class ItemV2(BaseModelV2):
        name: str
        description: str | None = None
        size: float
    
    
    app = FastAPI()
    
    
    @app.post("/items/", response_model=ItemV2)
    async def create_item(item: Item):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Oct 11 16:45:54 GMT 2025
    - 407 bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/bigger-applications.md

    ///
    
    ## Another module with `APIRouter` { #another-module-with-apirouter }
    
    Let's say you also have the endpoints dedicated to handling "items" from your application in the module at `app/routers/items.py`.
    
    You have *path operations* for:
    
    * `/items/`
    * `/items/{item_id}`
    
    It's all the same structure as with `app/routers/users.py`.
    
    But we want to be smarter and simplify the code a bit.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 19.2K bytes
    - Click Count (0)
  6. docs/ru/docs/python-types.md

    ///
    
    Это означает: «переменная `items` — это `list`, и каждый элемент этого списка — `str`».
    
    Таким образом, ваш редактор кода сможет помогать даже при обработке элементов списка:
    
    <img src="/img/python-types/image05.png">
    
    Без типов добиться этого почти невозможно.
    
    Обратите внимание, что переменная `item` — один из элементов списка `items`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 17.7K bytes
    - Click Count (0)
  7. docs_src/query_params/tutorial002_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_item(item_id: str, q: str | None = None):
        if q:
            return {"item_id": item_id, "q": q}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 219 bytes
    - Click Count (0)
  8. tests/test_put_no_body.py

    from inline_snapshot import snapshot
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    def save_item_no_body(item_id: str):
        return {"item_id": item_id}
    
    
    client = TestClient(app)
    
    
    def test_put_no_body():
        response = client.put("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"item_id": "foo"}
    
    
    def test_put_no_body_with_body():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/dict/DictionaryItemTest.java

            TestDictionaryItem item1 = new TestDictionaryItem();
            TestDictionaryItem item2 = new TestDictionaryItem();
    
            item1.id = 100L;
            item2.id = 200L;
    
            assertEquals(100L, item1.getId());
            assertEquals(200L, item2.getId());
    
            // Verify they don't affect each other
            item1.id = 300L;
            assertEquals(300L, item1.getId());
            assertEquals(200L, item2.getId());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/tutorial/bigger-applications.md

    ///
    
    ## 另一個帶有 `APIRouter` 的模組 { #another-module-with-apirouter }
    
    假設你還有一個模組 `app/routers/items.py`,專門處理應用程式中的「items」。
    
    你有以下路徑操作:
    
    * `/items/`
    * `/items/{item_id}`
    
    其結構與 `app/routers/users.py` 相同。
    
    但我們想要更聰明地簡化一些程式碼。
    
    我們知道這個模組中的所有路徑操作都有相同的:
    
    * 路徑 `prefix`:`/items`
    * `tags`:(只有一個標籤:`items`)
    * 額外的 `responses`
    * `dependencies`:它們都需要我們先前建立的 `X-Token` 相依性
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 18.7K bytes
    - Click Count (0)
Back to Top