Skip to content

Add input validation layer (zod schemas) for API routes #42

Description

@0xNyk

Most API routes destructure await request.json() and pass values into SQL without type checking, length limits, or schema validation. Adding zod schemas per route would catch malformed requests early and produce better error messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions