api-blueprint-validator icon indicating copy to clipboard operation
api-blueprint-validator copied to clipboard

Apiary API Blueprint Validator

Results 12 api-blueprint-validator issues
Sort by recently updated
recently updated
newest added

+ [email protected] (by markatom) + option fail-on-wornings (by markatom): just a merge of changes requested by markatom in pull requests #10 & #11 + option requireBlueprintName (by dougbeasley): similar to...

Fresh install from npm ``` $ node --version v8.2.1 $ npm --version 5.3.0 ```

[Valid example blueprint ](https://raw.githubusercontent.com/apiaryio/api-blueprint/ea393f3835297d8ca5828f42834fffb1d6bb2803/examples/10.%20Data%20Structures.md) is considered invalid ``` Error in JSON response in group "Coupons", resource "Coupons", action "Retrieve a Coupon" Parse error on line 1: ^ Expecting 'STRING', 'NUMBER',...

The command line tool should return an exit status greater than zero if validation fails in any way.

On node v6.2.2 and api-blueprint-validator 0.1.3: ``` $ ./node_modules/.bin/api-blueprint-validator ./api.md ./node_modules/.store/[email protected]/_/src/validator.js:74 result.warnings.forEach(function (warning) { ^ TypeError: Cannot read property 'forEach' of undefined at ./node_modules/.store/[email protected]/_/src/validator.js:74:22 ```

Installing api-blueprint-validator fresh right now causes the installation of protagonist 1.0.0. This version appears to require changes to api-blueprint-validator: ``` bash Warning: Command failed: /bin/sh -c node ./node_modules/.bin/api-blueprint-validator ./services/introduction.md .../node_modules/api-blueprint-validator/src/validator.js:74...

- set up options for protagonist - improve logging - schema validation

protagonist doesn't always return warnings or AST