Skip to content

slack-rpg/addon-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack RPG Official Add-on Validator

Build Status npm version Coverage Status

This provides a validator class that can be used to validate a Slack RPG Add On.

Example

const Validator = require('slack-rpg-addon-validator');

try {
  Validator.check(someJson);
} catch (error) {
  console.log(`someJson is not valid: ${error.message}`);
}

Validator.check()

Arguments

addon: {string|object} The JSON string/object to check

Return

true: returns a boolean true if validation is correct

Throws

Error: Throws an error if validation fails. error.message will contain what failed.

About

Addon Validation Library for Slack RPG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published