This provides a validator class that can be used to validate a Slack RPG Add On.
const Validator = require('slack-rpg-addon-validator');
try {
Validator.check(someJson);
} catch (error) {
console.log(`someJson is not valid: ${error.message}`);
}
addon: {string|object} The JSON string/object to check
true: returns a boolean true if validation is correct
Error: Throws an error if validation fails. error.message
will contain what failed.