Allowed extensions including a leading dot.
File name of the file to be tested.
Error details in case of failure
darg_plus.exception.ValidationError if the extension of file is not in the list of allowed extensions.
validate, std.algorithm.searching.endsWith
Validates that the file has one of the allowed extensions.