Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Pydantic (0.15 sec)

  1. fastapi/param_functions.py

            Union[int, None],
            Doc(
                """
                Priority of the alias. This affects whether an alias generator is used.
                """
            ),
        ] = _Unset,
        # TODO: update when deprecating Pydantic v1, import these types
        # validation_alias: str | AliasPath | AliasChoices | None
        validation_alias: Annotated[
            Union[str, None],
            Doc(
                """
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  2. tests/test_application.py

                                        "title": "Item Id",
                                    }
                                )
                                # TODO: remove when deprecating Pydantic v1
                                | IsDict({"title": "Item Id", "type": "string"}),
                            }
                        ],
                    }
                },
                "/path/param-minlength/{item_id}": {
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 52.2K bytes
    - Viewed (0)
  3. docs/ru/docs/deployment/docker.md

    Ваш файл `requirements.txt` может выглядеть как-то так:
    
    ```
    fastapi>=0.68.0,<0.69.0
    pydantic>=1.8.0,<2.0.0
    uvicorn>=0.15.0,<0.16.0
    ```
    
    Устанавливать зависимости проще всего с помощью `pip`:
    
    <div class="termy">
    
    ```console
    $ pip install -r requirements.txt
    ---> 100%
    Successfully installed fastapi pydantic uvicorn
    ```
    
    </div>
    
    !!! info "Информация"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 57.5K bytes
    - Viewed (0)
  4. tests/test_generate_unique_id_function.py

    import warnings
    from typing import List
    
    from fastapi import APIRouter, FastAPI
    from fastapi.routing import APIRoute
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    def custom_generate_unique_id(route: APIRoute):
        return f"foo_{route.name}"
    
    
    def custom_generate_unique_id2(route: APIRoute):
        return f"bar_{route.name}"
    
    
    def custom_generate_unique_id3(route: APIRoute):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 15:10:26 GMT 2024
    - 66.7K bytes
    - Viewed (0)
Back to top