Comprehensive validation library for Vue.js applications providing common validators with built-in error messages and customization options
87
{
"context": "This criteria evaluates how effectively an engineer uses @vuelidate/validators built-in validators to implement form validation rules for a user registration form. The focus is on correctly applying the appropriate validators (required, email, numeric, alphaNum, url, minValue, minLength, sameAs) to match the specified validation requirements.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Required validator",
"description": "Uses the 'required' validator from @vuelidate/validators for username, email, age, password, and passwordConfirmation fields",
"max_score": 20
},
{
"name": "Email validator",
"description": "Uses the 'email' validator from @vuelidate/validators to validate email field format",
"max_score": 10
},
{
"name": "Alphanumeric validator",
"description": "Uses the 'alphaNum' validator from @vuelidate/validators to ensure username contains only alphanumeric characters",
"max_score": 10
},
{
"name": "Numeric validator",
"description": "Uses the 'numeric' validator from @vuelidate/validators to ensure age field contains numeric values",
"max_score": 10
},
{
"name": "Minimum value validator",
"description": "Uses the 'minValue' validator from @vuelidate/validators with parameter 18 to enforce minimum age requirement",
"max_score": 10
},
{
"name": "URL validator",
"description": "Uses the 'url' validator from @vuelidate/validators to validate website field format when provided (optional field handling)",
"max_score": 10
},
{
"name": "Minimum length validator",
"description": "Uses the 'minLength' validator from @vuelidate/validators with parameter 8 to enforce minimum password length",
"max_score": 15
},
{
"name": "Field matching validator",
"description": "Uses the 'sameAs' validator from @vuelidate/validators to ensure passwordConfirmation matches the password field",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-vuelidate--validatorsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10