Skip to content

Validate request payloads using Zod on public routes #146

@robertocarlous

Description

@robertocarlous

Body:

Some controllers assume well-formed input. Add Zod schemas for key endpoints and middleware to validate inputs, returning 400 with a consistent error payload for malformed requests.

Acceptance Criteria:

  • Zod schemas exist for major public endpoints (auth, deposit, withdraw, webhook).
  • Invalid payloads return 400 with a descriptive error body.
  • Tests cover validation failures and success cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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