Exercise type validation schema for interactive learning activities
Enumeration schema that defines the various types of exercises available
in the language learning platform. This schema ensures consistent exercise
categorization and supports the platform's interactive learning system
by enforcing valid exercise types for content creation and user engagement.
The exercise types cover different learning modalities: translation exercises
develop language conversion skills, fill-in-the-blank tests comprehension,
true/false (vof) questions assess understanding, pairs exercises practice
matching concepts, informative exercises provide contextual learning, and
ordering exercises develop sequence understanding.
Example
// Exercise creation with type validation constCreateExerciseSchema = z.object({ title:z.string().min(1).max(200), type:ExerciseTypeSchema, content:JsonSchema, difficulty:z.enum(['easy', 'medium', 'hard']) });
Exercise type validation schema for interactive learning activities
Enumeration schema that defines the various types of exercises available in the language learning platform. This schema ensures consistent exercise categorization and supports the platform's interactive learning system by enforcing valid exercise types for content creation and user engagement.
The exercise types cover different learning modalities: translation exercises develop language conversion skills, fill-in-the-blank tests comprehension, true/false (vof) questions assess understanding, pairs exercises practice matching concepts, informative exercises provide contextual learning, and ordering exercises develop sequence understanding.