validateSchema method
Perform validations on the schema property values
Implementation
String? validateSchema() {
if (name.length > nameMaxLengthValue) {
return "The length of 'name' cannot be > $nameMaxLengthValue characters";
}
if (pods < podsMinValue) {
return "The value of 'pods' cannot be < $podsMinValue";
}
if (replicas < replicasMinValue) {
return "The value of 'replicas' cannot be < $replicasMinValue";
}
return null;
}