Get started
Verification report · signed

96 of 96 claims verified at floor 0.9.

Every claim below was scored against the source it cites. Check the signature offline with the key at /.well-known/report-keys, or re-run any claim with the pinned judge.

The report

Digestsha256:e2020dba1752131ddea7374f8f7a78e9a0a1efbefb57bcba7d757e2491710f4f
Signing key idpem-9ec90d53d901e315
Judgegoogle/gemini-4-argon · v0-dev
Judge prompt hashsha256:1e64388843ffb61194ac8007b4992da06d5edd7ac2671ec35b1e82d8c2a9d04d
AI Source of Truthrecord · entity AI Source of Truth verdict for record a7909f022f4e
Pipelinecore-0
Mean entailment1.000
Signed2026-11-18
Versionv1
Artifact digestsha256:f5ba19e61c6d59c71883f84929949aaddd570a262c1ea2a01eb7b9b60c38fd38
Source commitsha256:d44989ca4a35fc591ee7a983f3994716ce0dcbbfa667c159ec2a039b2fdaeeff
Verified at2026-11-18T22:25:49.673Z
Cited byno other product cites this version yet

Agents: fetch the same report with artifacts_get view report (its freshness carries the version, digest, source commit and verified time, and its citation says whether it met its floor), compare versions with view versions, and re-check a claim with claims_verify (no token needed; see the MCP reference).

What this report checked

  • Sources were locked and hashed before any claim was scored
  • The text was split into atomic factual claims
  • Each claim was scored against the source it cites by the pinned judge
  • Each claim was bound to verified, in review or cut at the floor

Checks not run

  • Claims were re-verified after the style pass

What this report does not cover

  • Whether the cited sources are themselves true
  • Factual statements the decomposition step did not extract as claims
  • Safety or security of code, commands or instructions in the artifact
  • Licensing or ownership of the artifact content
Judge versionv0-dev

Verify it yourself

This report is also an in-toto attestation in a Sigstore bundle, signed with the report key. Check it with cosign and the published key; you need no ContextFile code. Full steps: /docs/verify.

Key idpem-9ec90d53d901e315
Rekornot logged (only reports on the registry are logged; cosign needs --insecure-ignore-tlog=true)
curl -sSo attestation.sigstore.json 'https://contextfile.ai/reports/sha256%3Ae2020dba1752131ddea7374f8f7a78e9a0a1efbefb57bcba7d757e2491710f4f/attestation.sigstore.json'
curl -sS 'https://contextfile.ai/.well-known/report-keys' | jq -r '.keys[] | select(.key_id == "pem-9ec90d53d901e315") | .pem' > report-key.pem
cosign verify-blob-attestation \
  --new-bundle-format --bundle attestation.sigstore.json \
  --key report-key.pem \
  --type https://contextfile.ai/verification-report/v1 \
  --insecure-ignore-tlog=true \
  ./artifact-file

Replace ./artifact-file with the file you bought; cosign checks that its SHA-256 is the statement subject. To read the scope block from the bundle:

jq -r .dsseEnvelope.payload attestation.sigstore.json | base64 -d | jq .predicate.body.scope

Claims

ClaimSourceScoreStateRe-check
CLM-0001
FastAPI's current versions are 0.x.x.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/deployment/versions.md1verified
CLM-0002
FastAPI's 0.x.x versioning reflects that each version could potentially have breaking changes.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/deployment/versions.md1verified
CLM-0003
The FastAPI docs recommend pinning your fastapi version to the specific latest version that you know works for your application.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/deployment/versions.md1verified
CLM-0004
Under FastAPI's conventions, a "PATCH" version change is for bug fixes and non-breaking changes.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/deployment/versions.md1verified
CLM-0005
Under FastAPI's conventions, breaking changes and new features are added in "MINOR" versions.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/deployment/versions.md1verified
CLM-0006
The FastAPI docs state that you shouldn't pin starlette because different versions of FastAPI use a specific newer version of Starlette.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/deployment/versions.md1verified
CLM-0007
Current FastAPI versions require Pydantic v2.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md1verified
CLM-0008
FastAPI 0.100.0 supported either Pydantic v1 or v2.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md1verified
CLM-0009
FastAPI 0.119.0 introduced partial support for pydantic.v1 from inside Pydantic v2.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md1verified
CLM-0010
FastAPI 0.126.0 dropped Pydantic v1 support.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md1verified
CLM-0011
FastAPI 0.128.0 dropped pydantic.v1 support.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md1verified
CLM-0012
In current FastAPI versions, using a pydantic.v1 model in your app raises an error.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md1verified
CLM-0013
Starting in FastAPI 0.122.0, integrated security utilities return 401 Unauthorized (with a WWW-Authenticate header) after failed authentication.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/authentication-error-status-code.md1verified
CLM-0014
Before FastAPI 0.122.0, integrated security utilities returned 403 Forbidden after failed authentication.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/authentication-error-status-code.md1verified
CLM-0015
Depends(scope="function") for dependencies with yield was introduced in FastAPI 0.121.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/advanced-dependencies.md1verified
CLM-0016
In FastAPI 0.118.0, exit code after yield runs after the response is sent, which is a reversal of earlier behavior.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/advanced-dependencies.md1verified
CLM-0017
Raising exceptions after yield became possible in FastAPI 0.106.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/advanced-dependencies.md1verified
CLM-0018
Dataclasses were supported starting in FastAPI 0.67.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/dataclasses.md1verified
CLM-0019
Annotated support was added and recommended in FastAPI 0.95.0, and the docs advise using at least 0.95.1.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/path-params-numeric-validations.md1verified
CLM-0020
Annotated support was added and recommended in FastAPI 0.95.0, and the docs advise using at least 0.95.1.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/query-params-str-validations.md1verified
CLM-0021
OpenAPI summary became available in FastAPI 0.99.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/extending-openapi.md1verified
CLM-0022
The openapi_examples parameter was introduced in FastAPI 0.103.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/schema-extra-example.md1verified
CLM-0023
Form models were introduced in FastAPI 0.113.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/request-form-models.md1verified
CLM-0024
Forbidding extra form fields was introduced in FastAPI 0.114.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/request-form-models.md1verified
CLM-0025
Query parameter models were introduced in FastAPI 0.115.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/query-param-models.md1verified
CLM-0026
Header parameter models were introduced in FastAPI 0.115.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/header-param-models.md1verified
CLM-0027
Cookie parameter models were introduced in FastAPI 0.115.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/cookie-param-models.md1verified
CLM-0028
To revert to the old 403 behavior, you can override the method make_not_authenticated_error in your security classes.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/authentication-error-status-code.md1verified
CLM-0029
The make_not_authenticated_error method returns the exception instance and does not raise it.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/authentication-error-status-code.md1verified
CLM-0030
The tutorial installs FastAPI with uv add "fastapi[standard]".
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/index.md1verified
CLM-0031
The standard extra includes fastapi-cloud-cli, which allows deploying to FastAPI Cloud.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/index.md1verified
CLM-0032
uv add fastapi installs FastAPI without the optional standard dependencies.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/index.md1verified
CLM-0033
uv add "fastapi[standard-no-fastapi-cloud-cli]" installs the standard dependencies without fastapi-cloud-cli.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/index.md1verified
CLM-0034
You can configure the app location in pyproject.toml with [tool.fastapi] and entrypoint = "main:app".
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/first-steps.md1verified
CLM-0035
The entrypoint "main:app" tells the fastapi command to import the app as from main import app.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/fastapi-cli.md1verified
CLM-0036
For a layout of backend/main.py with __init__.py, setting entrypoint = "backend.main:app" is equivalent to from backend.main import app.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/fastapi-cli.md1verified
CLM-0037
The docs recommend using the entrypoint in pyproject.toml because other tools, such as the VS Code Extension or FastAPI Cloud, might not find the app otherwise.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/fastapi-cli.md1verified
CLM-0038
You can pass a file path or --entrypoint to fastapi dev, which requires passing the correct path or entrypoint every time.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/fastapi-cli.md1verified
CLM-0039
Running fastapi dev initiates development mode.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/fastapi-cli.md1verified
CLM-0040
In fastapi dev, auto-reload is enabled by default, and the docs say it is resource-intensive and could be less stable.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/fastapi-cli.md1verified
CLM-0041
In fastapi dev, the server listens on 127.0.0.1.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/fastapi-cli.md1verified
CLM-0042
Before importing your app, fastapi dev sets FASTAPI_ENV to development, and preserves an existing value if already set.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/fastapi-cli.md1verified
CLM-0043
For production, the docs use uv run fastapi run.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/ai-development.md1verified
CLM-0044
The command to deploy to FastAPI Cloud is uv run fastapi deploy.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/ai-development.md1verified
CLM-0045
FastAPI includes an official agent skill, bundled with the Python package, with guidance for the version installed in your project.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/ai-development.md1verified
CLM-0046
You can install the FastAPI agent skill by running uvx library-skills from your project directory.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/ai-development.md1verified
CLM-0047
When installing the skill via uvx library-skills, select .agents/skills for Codex and most agents, or .claude/skills for Claude Code.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/ai-development.md1verified
CLM-0048
A non-interactive install for the FastAPI agent skill is uvx library-skills install --skill fastapi --yes.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/ai-development.md1verified
CLM-0049
Adding --claude to uvx library-skills install --skill fastapi --yes also installs the skill in .claude/skills.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/ai-development.md1verified
CLM-0050
The FastAPI agent skill is compatible with Codex, Claude Code, Cursor, GitHub Copilot, Gemini CLI, Pi, OpenCode, and most other coding agents.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/index.md1verified
CLM-0051
FastAPI will extract each field of a Pydantic model from the query parameters of the request and give you the model you defined.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/query-param-models.md1verified
CLM-0052
FastAPI will extract each field of a Pydantic model from the headers of the request and give you the model you defined.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/header-param-models.md1verified
CLM-0053
FastAPI will extract each field of a Pydantic model from the cookies of the request and give you the model you defined.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/cookie-param-models.md1verified
CLM-0054
With Pydantic's extra configuration set to forbid, a client that sends an extra query parameter gets an error response.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/query-param-models.md1verified
CLM-0055
With Pydantic's extra configuration set to forbid, a client that sends an extra header gets an error response.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/header-param-models.md1verified
CLM-0056
Header parameter names with underscores are automatically converted to hyphens, such as save_data becoming save-data.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/header-param-models.md1verified
CLM-0057
You can disable underscore-to-hyphen conversion in headers with convert_underscores, though some HTTP proxies and servers disallow headers with underscores.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/header-param-models.md1verified
CLM-0058
A header parameter model declared with | None and a default of None is optional, and if either field is sent, FastAPI validates the model and requires both.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/header-param-models.md1verified
CLM-0059
A path parameter is always required because it has to be part of the URL path, and a parameter declared with Path cannot have a default value.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/path-params-numeric-validations.md1verified
CLM-0060
When Query is used inside Annotated, you cannot use the default parameter for Query and must use the actual default value of the function parameter instead.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/query-params-str-validations.md1verified
CLM-0061
Passing max_length to Query validates the data and documents the parameter in the OpenAPI schema.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/query-params-str-validations.md1verified
CLM-0062
Custom validation via Pydantic's AfterValidator inside Annotated is available with Pydantic version 2 or above.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/query-params-str-validations.md1verified
CLM-0063
Validation that requires communicating with an external component, such as a database, should use FastAPI Dependencies instead.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/query-params-str-validations.md1verified
CLM-0064
The reference page lists Query(), Path(), Body(), Cookie(), Header(), Form() and File(), all importable from fastapi.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/reference/parameters.md1verified
CLM-0065
Form fields declared through Pydantic models require python-multipart.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/request-form-models.md1verified
CLM-0066
If a dependency is declared multiple times for the same path operation, FastAPI calls it only once per request and passes the cached value to all dependants.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/dependencies/sub-dependencies.md1verified
CLM-0067
Setting use_cache=False in Depends makes the dependency run again at every step.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/dependencies/sub-dependencies.md1verified
CLM-0068
With Depends(scope="function"), the exit code after yield runs right after the path operation function finishes, before the response is sent.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/advanced-dependencies.md1verified
CLM-0069
With scope="request" (the default in Depends), the exit code after yield runs after the response is sent.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/advanced-dependencies.md1verified
CLM-0070
For dependencies with yield, the exit code runs after the middleware, and background tasks run after all the middleware.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/middleware.md1verified
CLM-0071
Security() can be used instead of Depends() when you also want to declare OAuth2 scopes.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/reference/dependencies.md1verified
CLM-0072
FastAPI automatically generates OpenAPI 3.1 specifications, so any SDK-generation tool you use must support that version.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/generate-clients.md1verified
CLM-0073
The generated OpenAPI schema is served at /openapi.json.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/first-steps.md1verified
CLM-0074
A FastAPI instance has an .openapi() method that by default returns the cached .openapi_schema if present, and otherwise generates the schema with fastapi.openapi.utils.get_openapi.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/extending-openapi.md1verified
CLM-0075
get_openapi() defaults openapi_version to the latest, 3.1.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/how-to/extending-openapi.md1verified
CLM-0076
The dictionary passed to openapi_extra is deeply merged with the automatically generated schema for the path operation.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/path-operation-advanced-configuration.md1verified
CLM-0077
openapi_examples can be declared on Path(), Query(), Header(), Cookie(), Body(), Form() and File().
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/schema-extra-example.md1verified
CLM-0078
FastAPI 0.99.0 and above use OpenAPI 3.1.0.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/schema-extra-example.md1verified
CLM-0079
Startup and shutdown logic is defined with the lifespan parameter of the FastAPI app and an async context manager.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/events.md1verified
CLM-0080
In a lifespan context manager, code before the yield runs before the app starts taking requests, and code after the yield runs after it finishes handling requests.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/events.md1verified
CLM-0081
Using @lru_cache on a get_settings() dependency means the Settings object, and the .env read, happen once instead of per request.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/settings.md1verified
CLM-0082
Behind a proxy, the server started by fastapi run can interpret forwarded headers, though by default it won't because it doesn't know it is behind a trusted proxy.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/behind-a-proxy.md1verified
CLM-0083
The CLI option --forwarded-allow-ips sets which IPs are trusted, and "*" trusts all incoming IPs.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/behind-a-proxy.md1verified
CLM-0084
The CLI option --root-path sets the root_path, for example /api/v1.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/behind-a-proxy.md1verified
CLM-0085
In Docker, the docs say to always use the exec form of CMD so FastAPI can shut down gracefully and lifespan events are triggered.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/deployment/docker.md1verified
CLM-0086
Behind a TLS termination proxy, adding --proxy-headers tells Uvicorn (through the FastAPI CLI) to trust the proxy's headers.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/deployment/docker.md1verified
CLM-0087
In Docker, copying the requirements file first lets Docker cache that step, so the dependency install step can use the cache too.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/deployment/docker.md1verified
CLM-0088
Each worker process has its own memory, so a 1 GB model loaded by 4 workers consumes about 4 GB of RAM in total.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/deployment/concepts.md1verified
CLM-0089
FastAPI implements a keep-alive ping comment every 15 seconds when there has been no message as an SSE default out of the box.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/server-sent-events.md1verified
CLM-0090
FastAPI implements Cache-Control: no-cache as an SSE default out of the box.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/server-sent-events.md1verified
CLM-0091
FastAPI implements X-Accel-Buffering: no as an SSE default out of the box.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/server-sent-events.md1verified
CLM-0092
Dataclasses are supported through Pydantic, which converts them to Pydantic's own flavor of dataclasses, and the docs note they can't do everything Pydantic models can.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/dataclasses.md1verified
CLM-0093
To mount a WSGI app such as Flask, use WSGIMiddleware from a2wsgi, as the fastapi.middleware.wsgi version is deprecated.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/advanced/wsgi.md1verified
CLM-0094
jsonable_encoder() converts data such as Pydantic models and datetime objects into JSON-compatible structures.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/encoder.md1verified
CLM-0095
A middleware is created with @app.middleware("http") and receives the request and a call_next function.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/middleware.md1verified
CLM-0096
With response_model set to an output model without the password field, FastAPI filters out all data not declared in that model.
https://github.com/fastapi/fastapi/blob/05e6df7e906c3decba377c37548019973f40bf15/docs/en/docs/tutorial/response-model.md1verified