has-suffix
$has-suffix
Check that the provided string value ends with the suffix value
Parameters
match(string, required): The required suffix string.
Example
// Require file paths to end with '.json'
new Schema('string').validator({'$has-suffix': '.json'})
// Require callback URLs to end with '/callback'
new Schema('string').validator({'$has-suffix': '/callback'})