Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for atTotal (0.21 sec)

  1. docs_src/openapi_callbacks/tutorial001.py

    from fastapi import APIRouter, FastAPI
    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Invoice(BaseModel):
        id: str
        title: Union[str, None] = None
        customer: str
        total: float
    
    
    class InvoiceEvent(BaseModel):
        description: str
        paid: bool
    
    
    class InvoiceEventReceived(BaseModel):
        ok: bool
    
    
    invoices_callback_router = APIRouter()
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  2. docs/sts/client_grants/__init__.py

                timeout=urllib3.Timeout.DEFAULT_TIMEOUT,
                maxsize=10,
                cert_reqs='CERT_NONE',
                ca_certs=ca_certs,
                retries=urllib3.Retry(
                    total=5,
                    backoff_factor=0.2,
                    status_forcelist=[500, 502, 503, 504]
                )
            )
    
        def load(self):
            """
            Search for credentials with client_grants
    Python
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 4.6K bytes
    - Viewed (1)
  3. tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py

                                {"title": "Title", "type": "string"}
                            ),
                            "customer": {"title": "Customer", "type": "string"},
                            "total": {"title": "Total", "type": "number"},
                        },
                    },
                    "InvoiceEvent": {
                        "title": "InvoiceEvent",
                        "required": ["description", "paid"],
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 9K bytes
    - Viewed (0)
  4. tests/test_sub_callbacks.py

                        "Event": {
                            "title": "Event",
                            "required": ["name", "total"],
                            "type": "object",
                            "properties": {
                                "name": {"title": "Name", "type": "string"},
                                "total": {"title": "Total", "type": "number"},
                            },
                        },
                        "HTTPValidationError": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  5. fastapi/openapi/models.py

    
    # Ref: https://json-schema.org/draft/2020-12/json-schema-core.html#name-json-schema-documents
    # A JSON Schema MUST be an object or a boolean.
    SchemaOrBool = Union[Schema, bool]
    
    
    class Example(TypedDict, total=False):
        summary: Optional[str]
        description: Optional[str]
        value: Optional[Any]
        externalValue: Optional[AnyUrl]
    
        if PYDANTIC_V2:  # type: ignore [misc]
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  6. fastapi/encoders.py

        bytes: lambda o: o.decode(),
        Color: str,
        datetime.date: isoformat,
        datetime.datetime: isoformat,
        datetime.time: isoformat,
        datetime.timedelta: lambda td: td.total_seconds(),
        Decimal: decimal_encoder,
        Enum: lambda o: o.value,
        frozenset: list,
        deque: list,
        GeneratorType: list,
        IPv4Address: str,
        IPv4Interface: str,
        IPv4Network: str,
    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