If you want to provide a custom message, you need to pass the object to the validation rule ( minLength) with a property paramscontaining a parameter and a property messagewith a new message:
var viewModel = {
firstName: ko.observable().extend({
minLength: { params: 3, message: "Please enter Valid number" }
, maxLength: 10
}),
}
JSFiddle.