Appearance
HTTP boundary models (request and response schemas)
Applies to: **/schemas.py, **/schemas/**/*.py
Checklist
- One boundary model per payload with explicit
Annotatedconstraint types; flag baredict,Any, or unvalidated JSON in signatures when a model exists. - Boundary models MUST NOT double as domain/application models; map explicitly (
to_domain()or amodel_validator) to internal types. - A request model returns its converted model instead of re-reading its own validated attributes; flag second parsing layers.
- Secret-bearing fields are
repr=FalseorSecretStr; secrets never appear in logs or error payloads. - Raw SDK chunk dict types stay in the streaming package only.