API contract hardening

This commit is contained in:
tegwick 2026-04-26 17:32:01 +02:00
parent 57bc289fdc
commit 2c2bd4347a
6 changed files with 415 additions and 1 deletions

View file

@ -40,6 +40,7 @@ from repo_registry.web_api.schemas import (
ContentChunkResponse,
EvidenceCreate,
EvidenceUpdate,
ErrorResponse,
FeatureCreate,
FeatureUpdate,
IdResponse,
@ -116,6 +117,10 @@ app = FastAPI(
version="0.1.0",
description=API_DESCRIPTION,
openapi_tags=OPENAPI_TAGS,
responses={
400: {"model": ErrorResponse, "description": "Bad request."},
404: {"model": ErrorResponse, "description": "Resource not found."},
},
)