Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for achieves (0.04 sec)

  1. docs/en/docs/release-notes.md

    #### Forbid Extra Query (Cookie, Header) Parameters
    
    Use Pydantic models to restrict extra values for `Query` parameters (also applies to `Header` and `Cookie` parameters).
    
    To achieve it, use Pydantic's `model_config = {"extra": "forbid"}`:
    
    ```python
    from typing import Annotated, Literal
    
    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
Back to top