Skip to content

1. Add lib/utils/validation.ts form schemas #370

Description

@DeFiVC

What: Add Zod schemas for form validation (profile, course creation, quiz submission).

Why: Forms need schema-based validation. Zod provides type-safe validation with good error messages.

Scope: Add schemas for: profileUpdate, courseCreate, quizSubmit, rewardClaim. Export types from schemas.

Acceptance criteria:

  • Schemas validate correctly
  • Types are exported
  • Error messages are clear
  • Schemas are composable

Technical context: src/lib/utils/validation.ts — validation utils. src/app/(auth)/onboarding/page.tsx — onboarding form.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions