Ticket 4.1 – Request-/Response-Modelle mit Pydantic #10
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Beschreibung:
In src/app/schemas.py Pydantic-Modelle definieren:
ShortenRequest mit Feld url: HttpUrl (oder str + eigene Validierung).
ShortenResponse mit Feld short_url: str.
Akzeptanzkriterien:
Ungültige URLs führen automatisch zu 422/400 Response.
Modelle werden in den Endpoints verwendet.