Fastapi response contract boundary

From JinNing6/Noosphere · View interactive version

Fastapi response contract boundary is an AI agent skill from the GitHub repository JinNing6/Noosphere. Audit and fix FastAPI/Pydantic response contract failures and analytics metric drift. Use when endpoints return ResponseValidationError/500, legacy JSON rows miss required response fields, response_model schemas need compatibility normalizers, or dashboard/trend/report APIs disagree on a canonical m

How to use this skill

Skill file

FastAPI Response Contract Boundary

Use this skill to keep strict FastAPI response models without letting old or external data crash user-facing endpoints.

Workflow

  1. Reproduce with the real API first.
  1. Check official docs before code edits.
  1. Locate the contract boundary.
  1. Do not "fix" by removing response_model.
  1. Normalize legacy JSON deliberately.
  1. For analytics metrics, define one canonical source.

Regression Tests

Completion Standard

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.