Tuesday, May 19, 2026

Catch typos in rental booking status before they reach the database

Volleyball Elite Academy development update
Volleyball Elite Academy
Catch typos in rental booking status before they reach the database

Catch typos in rental booking status before they reach the database

Volleyball Elite Academy — Development Update • May 19, 2026

--- title: Catch typos in rental booking status before they reach the database ---

Catch typos in rental booking status before they reach the database

## What & Why Task #1043 tightened the rental booking schema so the status field must be one of "BOOKED", "CONFIRMED", or "CANCELLED" (previously any text was accepted). The PATCH route is now covered by tests, but the create-and-bulk-import routes (POST and POST ) share the same schema and have no test that locks in this behavior. Without a test, a future change could silently weaken the create path's status validation and let bad values back into the database.

## Done looks like - A test confirms POST rejects an invalid status (e.g. "confirmed" lowercase, or "PENDING") with 400 - A test confirms POST rejects the batch when any row carries an invalid status - A test confirms valid uppercase enum values still pass through and reach storage

## Relevant files - (POST around L2913, POST around L2931) - (existing scaffold and mocks; add a new describe block alongside the Task #1043 lockdown tests) - (insertGymRentalSchema, GYM_RENTAL_STATUS)

Volleyball Elite Academy

Reply to this email — we read every reply.

You received this because you have an account with Volleyball Elite Academy.

elitevolleyball.training

No comments:

Post a Comment