validate method
Implementation
List<String> validate() {
final errors = <String>[];
if (filePath.isEmpty) {
errors.add('Missing required parameter: file_path');
} else if (!p.isAbsolute(filePath)) {
errors.add('file_path must be an absolute path, got: $filePath');
}
// content can be empty for creating empty files
return errors;
}