Modules
Schemify organizes functionality into modules. Each module groups together a set of validators or helpers that serve a common purpose. This makes the library easier to extend, navigate, and use in real projects.
Note that the module structure is purely organizational. When you import from Schemify, all validators are flattened into the top–level export. This means you don’t need to worry about which module a validator belongs to when using it in your project — the module grouping only exists in the code and documentation for clarity.
Module Structure
All modules follow the same principle:
- Composable – you can nest and combine them freely.
- Isolated - each module only does one thing well.
- Extensible - you can add new modules without affecting existing ones.
- Core
Contains the essential building blocks of Schemify. These are validators and utilities you will use in nearly every schema. - Primitive
Provides validators for basic data types such as strings, numbers, and booleans. These modules cover the most common use cases for validating raw values. - Complex
Focuses on higher–level validators that combine or wrap primitives. Useful for structured data like arrays, objects, or custom constraints. - Datetime
Focuses on ISO 8601 date and time validators.