Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 36 for ItemV2 (0.06 seconds)

  1. docs/ru/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    {* ../../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 }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  2. docs/pt/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    {* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *}
    
    No exemplo acima, o modelo de entrada é um modelo Pydantic v1, e o modelo de saída (definido em `response_model=ItemV2`) é um modelo Pydantic v2.
    
    ### Parâmetros do Pydantic v1 { #pydantic-v1-parameters }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  3. docs/fr/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    {* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *}
    
    Dans l'exemple ci-dessus, le modèle d'entrée est un modèle Pydantic v1 et le modèle de sortie (défini dans `response_model=ItemV2`) est un modèle Pydantic v2.
    
    ### Paramètres Pydantic v1 { #pydantic-v1-parameters }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  4. docs/en/docs/release-notes.md

    from pydantic.v1 import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
    
    
    class ItemV2(BaseModelV2):
        title: str
        summary: str | None = None
    
    
    app = FastAPI()
    
    
    @app.post("/items/", response_model=ItemV2)
    def create_item(item: Item):
        return {"title": item.name, "summary": item.description}
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:07:04 GMT 2026
    - 631K bytes
    - Click Count (0)
  5. tests/test_dependency_duplicates.py

        return item
    
    
    def dependency(item2: Item):
        return item2
    
    
    def sub_duplicate_dependency(
        item: Item, sub_item: Item = Depends(duplicate_dependency)
    ):
        return [item, sub_item]
    
    
    @app.post("/with-duplicates")
    async def with_duplicates(item: Item, item2: Item = Depends(duplicate_dependency)):
        return [item, item2]
    
    
    @app.post("/no-duplicates")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertTrue(Files.equal(temp2, i18nFile));
      }
    
      public void testMoveFailures() throws IOException {
        File temp1 = createTempFile();
        File temp2 = createTempFile();
    
        moveHelper(false, new UnmovableFile(temp1, false, false), temp2);
        moveHelper(
            false, new UnmovableFile(temp1, false, false), new UnmovableFile(temp2, true, false));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

            // Symmetry
            assertTrue(item1.equals(item2));
            assertTrue(item2.equals(item1));
        }
    
        @Test
        public void test_equals_withNullInput() {
            // Test equals with null input - should not throw, uses null-safe comparison
            ProtwordsItem item1 = new ProtwordsItem(1, null);
            ProtwordsItem item2 = new ProtwordsItem(2, null);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  8. tests/test_generate_unique_id_function.py

        def post_root(item1: Item, item2: Item):
            return item1, item2  # pragma: nocover
    
        @router.post(
            "/router", response_model=list[Item], responses={404: {"model": list[Message]}}
        )
        def post_router(item1: Item, item2: Item):
            return item1, item2  # pragma: nocover
    
        app.include_router(router)
        client = TestClient(app)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 75K bytes
    - Click Count (0)
  9. tests/test_schema_extra_examples.py

            item_id: str = Path(
                examples=["item_1", "item_2"],
            ),
        ):
            return item_id
    
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.get("/path_example_examples/{item_id}")
            def path_example_examples(
                item_id: str = Path(
                    example="item_overridden",
                    examples=["item_1", "item_2"],
                ),
            ):
    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)
  10. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java

            StopwordsItem item1 = new StopwordsItem(1, "test");
            StopwordsItem item2 = new StopwordsItem(1, "test");
    
            item1.setNewInput("updated");
            item2.setNewInput("different");
    
            // Should still be equal based on original input
            assertTrue(item1.equals(item2));
        }
    
        @Test
        public void test_equals_withNullInput() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.4K bytes
    - Click Count (0)
Back to Top