- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for FooBaseModel (0.21 seconds)
-
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)Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 3.7K bytes - Click Count (0)