How to use the bids-validator.reformat function in bids-validator

To help you get started, we’ve selected a few bids-validator 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 OpenNeuroOrg / openneuro / src / scripts / dataset / dataset.tools.jobs.jsx View on Github external
scitran.getProject(snapshotId, (res) => {
            for (let app of this.props.apps) {
                let longDescription = typeof(app.longDescription) == 'string' ? JSON.parse(app.longDescription) : app.longDescription;
                let appConfig = longDescription.hasOwnProperty('appConfig') ? longDescription.appConfig : {error: []};
                let issues = validate.reformat(res.body.metadata.validation, res.body.metadata.summary, appConfig);
                if (issues.errors.length > 0) {
                    disabledApps[app.id] = {issues};
                }
            }
            this.setState({selectedSnapshot: snapshotId, disabledApps});
        },{snapshot:true});
    }

bids-validator

MIT
Latest version published 29 days ago

Package Health Score

79 / 100
Full package analysis

Similar packages