Dream-MachineProcurementList/server
Chever John 11104dbf29
Improves boolean parsing for 'purchased' field
Updates the StoreItemSchema to handle various input formats for the 'purchased' field, including strings and numbers.

This ensures that the application can correctly interpret boolean values from different sources, preventing data validation errors and improving the user experience.

Adds a preprocess function to the schema to convert string values like "on", "true", "1", "off", "false", and "0", and number values of 1 and 0 to their respective boolean equivalents before validation.
2025-08-21 15:46:00 +08:00
..
src Improves boolean parsing for 'purchased' field 2025-08-21 15:46:00 +08:00
package.json Adds Docker setup and basic API endpoints 2025-08-21 14:46:11 +08:00
pnpm-lock.yaml Adds Docker setup and basic API endpoints 2025-08-21 14:46:11 +08:00
tsconfig.json Adds Docker setup and basic API endpoints 2025-08-21 14:46:11 +08:00