Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for duplicates (0.2 sec)

  1. tests/test_dependency_duplicates.py

    @app.post("/no-duplicates")
    async def no_duplicates(item: Item, item2: Item = Depends(dependency)):
        return [item, item2]
    
    
    @app.post("/with-duplicates-sub")
    async def no_duplicates_sub(
        item: Item, sub_items: List[Item] = Depends(sub_duplicate_dependency)
    ):
        return [item, sub_items]
    
    
    def test_no_duplicates_invalid():
        response = client.post("/no-duplicates", json={"item": {"data": "myitem"}})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/extra-data-types.md

    * `frozenset`:
        * In requests and responses, treated the same as a `set`:
            * In requests, a list will be read, eliminating duplicates and converting it to a `set`.
            * In responses, the `set` will be converted to a `list`.
            * The generated schema will specify that the `set` values are unique (using JSON Schema's `uniqueItems`).
    * `bytes`:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-nested-models.md

        ```Python hl_lines="1  14"
        {!> ../../../docs_src/body_nested_models/tutorial003.py!}
        ```
    
    With this, even if you receive a request with duplicate data, it will be converted to a set of unique items.
    
    And whenever you output that data, even if the source had duplicates, it will be output as a set of unique items.
    
    And it will be annotated / documented accordingly too.
    
    ## Nested Models
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/generate-clients.md

    ### Preprocess the OpenAPI Specification for the Client Generator
    
    The generated code still has some **duplicated information**.
    
    We already know that this method is related to the **items** because that word is in the `ItemsService` (taken from the tag), but we still have the tag name prefixed in the method name too. 😕
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/body-nested-models.md

        ```
    
    Jetzt, selbst wenn Sie einen Request mit duplizierten Daten erhalten, werden diese zu einem Set eindeutiger Dinge konvertiert.
    
    Und wann immer Sie diese Daten ausgeben, selbst wenn die Quelle Duplikate hatte, wird es als Set von eindeutigen Dingen ausgegeben.
    
    Und es wird entsprechend annotiert/dokumentiert.
    
    ## Verschachtelte Modelle
    
    Jedes Attribut eines Pydantic-Modells hat einen Typ.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  6. docs/en/docs/deployment/concepts.md

    will have to make sure that it's a single process running those previous steps *even* if afterwards, you start **multiple processes** (multiple workers) for the application itself. If those steps were run by **multiple processes**, they would **duplicate** the work by running it on **parallel**, and if the steps were something delicate like a database migration, they could cause conflicts with each other.
    
    Of course, there are some cases where there's no problem in running the previous...
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 18K bytes
    - Viewed (0)
  7. docs/en/docs/release-notes.md

    ## 0.9.1
    
    * Document receiving [Multiple values with the same query parameter](https://fastapi.tiangolo.com/tutorial/query-params-str-validations/#query-parameter-list-multiple-values) and [Duplicate headers](https://fastapi.tiangolo.com/tutorial/header-params/#duplicate-headers). PR [#95](https://github.com/tiangolo/fastapi/pull/95).
    
    ## 0.9.0
    
    * Upgrade compatible Pydantic version to `0.21.0`. PR [#90](https://github.com/tiangolo/fastapi/pull/90).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  8. docs/pt/docs/tutorial/extra-data-types.md

    * `frozenset`:
        * Em requisições e respostas, será tratado da mesma forma que um `set`:
            * Nas requisições, uma lista será lida, eliminando duplicadas e convertendo-a em um `set`.
            * Nas respostas, o `set` será convertido para uma `list`.
            * O esquema gerado vai especificar que os valores do `set` são unicos (usando o `uniqueItems` do JSON Schema).
    * `bytes`:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/body-nested-models.md

    ```Python hl_lines="1  14"
    {!../../../docs_src/body_nested_models/tutorial003.py!}
    ```
    
    Com isso, mesmo que você receba uma requisição contendo dados duplicados, ela será convertida em um conjunto de itens exclusivos.
    
    E sempre que você enviar esses dados como resposta, mesmo se a fonte tiver duplicatas, eles serão gerados como um conjunto de itens exclusivos.
    
    E também teremos anotações/documentação em conformidade.
    
    ## Modelos aninhados
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/extra-data-types.md

    * `frozenset`:
        * Wird in Requests und Responses wie ein `set` behandelt:
            * Bei Requests wird eine Liste gelesen, Duplikate entfernt und in ein `set` umgewandelt.
            * Bei Responses wird das `set` in eine `list`e umgewandelt.
            * Das generierte Schema zeigt an, dass die `set`-Werte eindeutig sind (unter Verwendung von JSON Schemas `uniqueItems`).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:08:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top