How to use the coinstac-common.services.validator function in coinstac-common

To help you get started, we’ve selected a few coinstac-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github trendscenter / coinstac / packages / coinstac-ui / app / render / components / computations / computation-submission.jsx View on Github external
.then((res) => {
        let error = null;
        const validationReults = services.validator.validate(res, 'computation');

        if (validationReults.error) {
          error = validationReults.error.details;
        }

        this.setState({ activeSchema: res, validationErrors: error });
      })
      .catch(console.log);

coinstac-common

COINSTAC core functionality.

MIT
Latest version published 29 days ago

Package Health Score

73 / 100
Full package analysis

Similar packages