Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for url (0.15 sec)

  1. docs_src/path_operation_advanced_configuration/tutorial007.py

            raise HTTPException(status_code=422, detail="Invalid YAML")
        try:
            item = Item.model_validate(data)
        except ValidationError as e:
            raise HTTPException(status_code=422, detail=e.errors(include_url=False))
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 822 bytes
    - Viewed (0)
  2. tests/test_dependency_overrides.py

            ),
            ("/router-decorator-depends/", 200, {"in": "router-decorator-depends"}),
        ],
    )
    def test_override_simple(url, status_code, expected):
        app.dependency_overrides[common_parameters] = overrider_dependency_simple
        response = client.get(url)
        assert response.status_code == status_code
        assert response.json() == expected
        app.dependency_overrides = {}
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. fastapi/openapi/models.py

            class Config:
                extra = "allow"
    
    
    class Contact(BaseModelWithConfig):
        name: Optional[str] = None
        url: Optional[AnyUrl] = None
        email: Optional[EmailStr] = None
    
    
    class License(BaseModelWithConfig):
        name: str
        identifier: Optional[str] = None
        url: Optional[AnyUrl] = None
    
    
    class Info(BaseModelWithConfig):
        title: str
        summary: Optional[str] = None
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  4. fastapi/_compat.py

        from pydantic.json_schema import JsonSchemaValue as JsonSchemaValue
        from pydantic_core import CoreSchema as CoreSchema
        from pydantic_core import PydanticUndefined, PydanticUndefinedType
        from pydantic_core import Url as Url
    
        try:
            from pydantic_core.core_schema import (
                with_info_plain_validator_function as with_info_plain_validator_function,
            )
        except ImportError:  # pragma: no cover
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. fastapi/encoders.py

    from pydantic.color import Color
    from pydantic.networks import AnyUrl, NameEmail
    from pydantic.types import SecretBytes, SecretStr
    from typing_extensions import Annotated, Doc
    
    from ._compat import PYDANTIC_V2, UndefinedType, Url, _model_dump
    
    
    # Taken from Pydantic v1 as is
    def isoformat(o: Union[datetime.date, datetime.time]) -> str:
        return o.isoformat()
    
    
    # Taken from Pydantic v1 as is
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
Back to top