FastAPI generates the ValidationError schema with only loc, msg, and type, but Pydantic v2 actually returns input, ctx, and url as well. Generated clients with strict JSON decoding (Go's DisallowUnknownFields) cannot parse real 422 responses — the actual validation message gets replaced by a confusing JSON decoding error. - Patch the OpenAPI schema in create_app() to add input, ctx, url - Regenerate spec and Go client |
||
|---|---|---|
| .. | ||
| openapi.yaml | ||