- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IMPORT (0.17 sec)
-
tests/test_include_router_defaults_overrides.py
import warnings import pytest from fastapi import APIRouter, Depends, FastAPI, Response from fastapi.responses import JSONResponse from fastapi.testclient import TestClient class ResponseLevel0(JSONResponse): media_type = "application/x-level-0" class ResponseLevel1(JSONResponse): media_type = "application/x-level-1" class ResponseLevel2(JSONResponse): media_type = "application/x-level-2"
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 358.6K bytes - Viewed (0) -
docs/en/docs/release-notes.md
If you have *path operations* using `response_model` that need to be allowed to return `None`, make it explicit in `response_model` using `Union[Something, None]`: ```Python from typing import Union from fastapi import FastAPI from pydantic import BaseModel class Item(BaseModel): name: str price: Optional[float] = None owner_ids: Optional[List[int]] = None app = FastAPI()
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)