- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for FooBaseModel (0.04 sec)
-
tests/test_additional_properties_bool.py
from typing import Union from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel, ConfigDict class FooBaseModel(BaseModel): model_config = ConfigDict(extra="forbid") class Foo(FooBaseModel): pass app = FastAPI() @app.post("/") async def post( foo: Union[Foo, None] = None, ): return foo client = TestClient(app)Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 3.7K bytes - Viewed (0)