Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for allocs (0.05 sec)

  1. fastapi/openapi/models.py

            ) -> Mapping[str, Any]:
                return with_info_plain_validator_function(cls._validate)
    
    
    class BaseModelWithConfig(BaseModel):
        model_config = {"extra": "allow"}
    
    
    class Contact(BaseModelWithConfig):
        name: Optional[str] = None
        url: Optional[AnyUrl] = None
        email: Optional[EmailStr] = None
    
    
    class License(BaseModelWithConfig):
        name: str
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. tests/test_forms_single_model.py

    
    class FormModelExtraAllow(BaseModel):
        param: str
    
        model_config = {"extra": "allow"}
    
    
    @app.post("/form/")
    def post_form(user: Annotated[FormModel, Form()]):
        return user
    
    
    @app.post("/form-extra-allow/")
    def post_form_extra_allow(params: Annotated[FormModelExtraAllow, Form()]):
        return params
    
    
    client = TestClient(app)
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. fastapi/param_functions.py

        allow_inf_nan: Annotated[
            Union[bool, None],
            Doc(
                """
                Allow `inf`, `-inf`, `nan`. Only applicable to numbers.
                """
            ),
        ] = _Unset,
        max_digits: Annotated[
            Union[int, None],
            Doc(
                """
                Maximum number of allow digits for strings.
                """
            ),
        ] = _Unset,
        decimal_places: Annotated[
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  4. docs/de/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    Dieses Tool hilft Ihnen, den Großteil des zu ändernden Codes automatisch anzupassen.
    
    Danach können Sie die Tests ausführen und prüfen, ob alles funktioniert. Falls ja, sind Sie fertig. 😎
    
    ## Pydantic v1 in v2 { #pydantic-v1-in-v2 }
    
    Pydantic v2 enthält alles aus Pydantic v1 als Untermodul `pydantic.v1`. Dies wird aber in Versionen oberhalb von Python 3.13 nicht mehr unterstützt.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  5. tests/test_compat.py

        # TODO: in theory this would allow declaring types that could be lists of bytes
        # to be read from files and other types, but I'm not even sure it's a good idea
        # to support it as a first class "feature"
        assert is_bytes_sequence_annotation(Union[list[str], list[bytes]])
    
    
    def test_is_uploadfile_sequence_annotation():
        # For coverage
        # TODO: in theory this would allow declaring types that could be lists of UploadFile
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. README.md

    * The interactive API documentation will be automatically updated, including the new body:
    
    ![Swagger UI](https://fastapi.tiangolo.com/img/index/index-03-swagger-02.png)
    
    * Click on the button "Try it out", it allows you to fill the parameters and directly interact with the API:
    
    ![Swagger UI interaction](https://fastapi.tiangolo.com/img/index/index-04-swagger-03.png)
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  7. docs/en/docs/release-notes.md

    This PR allows setting the (mostly new) parameters (additionally to the already existing parameters):
    
    * `default_response_class`: updated to handle defaults in `APIRouter` and `FastAPI`.
    * `deprecated`: to mark all the *path operations* in a router as deprecated in OpenAPI.
    * `include_in_schema`: to allow disabling all the *path operations* from showing in the OpenAPI schema.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
  8. docs/de/docs/how-to/graphql.md

    Wenn Sie mit **GraphQL** arbeiten möchten oder müssen, ist <a href="https://strawberry.rocks/" class="external-link" target="_blank">**Strawberry**</a> die **empfohlene** Bibliothek, da deren Design **FastAPIs** Design am nächsten kommt und alles auf **Typannotationen** basiert.
    
    Abhängig von Ihrem Anwendungsfall könnten Sie eine andere Bibliothek vorziehen, aber wenn Sie mich fragen würden, würde ich Ihnen wahrscheinlich empfehlen, **Strawberry** auszuprobieren.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/dataclasses.md

    Das funktioniert genauso wie mit Pydantic-Modellen. Und tatsächlich wird es unter der Haube mittels Pydantic auf die gleiche Weise bewerkstelligt.
    
    /// info | Info
    
    Bedenken Sie, dass Datenklassen nicht alles können, was Pydantic-Modelle können.
    
    Daher müssen Sie möglicherweise weiterhin Pydantic-Modelle verwenden.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5K bytes
    - Viewed (0)
  10. docs/en/docs/index.md

    * The interactive API documentation will be automatically updated, including the new body:
    
    ![Swagger UI](https://fastapi.tiangolo.com/img/index/index-03-swagger-02.png)
    
    * Click on the button "Try it out", it allows you to fill the parameters and directly interact with the API:
    
    ![Swagger UI interaction](https://fastapi.tiangolo.com/img/index/index-04-swagger-03.png)
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 23.5K bytes
    - Viewed (0)
Back to top