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

[![Node Tests](https://github.com/bids-standard/bids-validator/actions/workflows/node_tests.yml/badge.svg)](https://github.com/bids-standard/bids-validator/actions/workflows/node_tests.yml) [![bids-examples tests](https://github.com/bids-standard/bids-val

MIT
Latest version published 2 months ago

Package Health Score

76 / 100
Full package analysis

Similar packages