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