@cfg.plat/configurations-graph-validator
Validate fluid-configurations generated files against schemas
$ cnpm install @cfg.plat/configurations-graph-validator 
SYNC missed versions from official npm registry.

Configurations Graph Validator

Fluid CI Build Status Fluid CI Code Coverage Fluid CI Dependencies

Installation

npm install @cfg.plat/configurations-graph-validator --save

Usage

You can use it this module in two different ways

  • Include the library on Node.js
#!javascript

var configurationsGraphValidator = require("configurations-graph-validator");

configurationsGraphValidator.validateCustomer(customerGraph, function (err, errors) {

}

configurationsGraphValidator.validateProduct(productGraph, function (err, errors) {

}

configurationsGraphValidator.validateUi(uiGraph, function (err, errors) {

}
  • Using as a cli

First run:

make setup
bin/generate-schema -g

That will generate two folders on lib: generated_data which will contain all the vertexs and generated_schemas which will contain the generated schemas. You'll have to manually copy the schemas into schemas folder on the root of the project and modify them in order to make them valid

Testing

make

Continuous linting and testing

make dev

Releasing new versions

make release

The tasks release (same as release-patch), release-minor and release-major should be used for pushing new versions of the code.

License

Copyright (c) 2014 Fluid Inc, All rights reserved.

Current Tags

  • 0.1.0                                ...           latest (8 months ago)

1 Versions

  • 0.1.0                                ...           8 months ago

Copyright 2014 - 2016 © taobao.org |