Infrastructure low complexity shared
0
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Zod schema definitions shared between the client-side React Hook Form integration and the server-side API handler to ensure consistent validation rules at both layers. Defines field constraints for all booking form inputs including required fields, email format, phone format, and string length limits.

Feature: Booking Form

form-validation-schema

Responsibilities

  • Define Zod schemas for all booking form fields
  • Export TypeScript types inferred from schemas for type safety
  • Provide shared validation rules usable on both client and server

Interfaces

bookingFormSchema
BookingFormData (type)
validateBookingForm(data)
parseBookingPayload(raw)

Relationships

Dependents (1)

Components that depend on this component