2 downloads 64 views 0 likes Mar 18, 2025

Zood by Fabra
Updated Mar 18, 2025
- Added: any schema for flexible validation. - Added: ComputerCraft peripheral schema for peripheral validation. - Improved: Added domain validation and updated URL validation pattern for stricter and more accurate URL checks.

Welcome to Zood
Zood is a Lua library for ComputerCraft that provides a powerful and flexible way to validate and transform data structures. Inspired by Zod for TypeScript, Zood brings type safety and schema validation to Lua, making it easier to handle complex data in your ComputerCraft programs.
Features
- Type Validation: Ensure data matches expected types (e.g., strings, numbers, tables).
- Custom Validators: Add custom validation logic to suit your needs.
- Data Transformation: Transform data as it is validated (e.g., trim strings, convert case).
- Error Handling: Detailed error messages for debugging and validation failures.
- Schema Composition: Combine schemas to create complex validation rules.
wget run https://pinestore.cc/d/135Git Repository
comments
You can login with Discord to leave comments and reply to others!

url schema does not allow direct IPs or localhost!
http://localhost
-> Valid!
http://127.0.0.1
-> Valid!
thanks for catching that.. I've updated the URL schema now