- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for FormModel (0.04 sec)
-
tests/test_forms_single_model.py
from typing import Annotated, Optional from fastapi import FastAPI, Form from fastapi.testclient import TestClient from pydantic import BaseModel, Field app = FastAPI() class FormModel(BaseModel): username: str lastname: str age: Optional[int] = None tags: list[str] = ["foo", "bar"] alias_with: str = Field(alias="with", default="nothing") class FormModelExtraAllow(BaseModel): param: str
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 3.4K bytes - Viewed (0)