Module type validation schema for educational content categorization
Enumeration schema that defines the different types of learning modules
available in the language learning platform. This schema ensures consistent
module categorization and supports the platform's pedagogical structure
by enforcing valid module types for content organization and user navigation.
The module types represent different learning approaches: informative modules
provide background knowledge, basic lessons cover fundamental concepts,
reading modules focus on comprehension skills, dialogue modules practice
conversational skills, and exam modules assess learning progress.
Example
// Module creation with type validation constCreateModuleSchema = z.object({ title:z.string().min(1).max(200), type:ModuleTypeSchema, description:z.string().max(1000).optional(), order:OrderSchema });
Example
// Module filtering by type constModuleQuerySchema = z.object({ type:ModuleTypeSchema.optional(), difficulty:z.enum(['beginner', 'intermediate', 'advanced']).optional() });
Module type validation schema for educational content categorization
Enumeration schema that defines the different types of learning modules available in the language learning platform. This schema ensures consistent module categorization and supports the platform's pedagogical structure by enforcing valid module types for content organization and user navigation.
The module types represent different learning approaches: informative modules provide background knowledge, basic lessons cover fundamental concepts, reading modules focus on comprehension skills, dialogue modules practice conversational skills, and exam modules assess learning progress.