Skip to content

Commit

Permalink
Added use of customised api-blueprint-validator, with fail on warning…
Browse files Browse the repository at this point in the history
… flag enabled
  • Loading branch information
zakhenry committed Jan 7, 2016
1 parent c309080 commit af1057a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/app/Console/Commands/ApiaryValidateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function handle()

$validator = base_path().'/node_modules/.bin/api-blueprint-validator';

exec("$validator $fileLocation", $output, $exitCode);
exec("$validator $fileLocation --fail-on-warning", $output, $exitCode);

if ($exitCode == 0) {
$this->info('Apiary Documentation validation passed');
Expand Down
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"author": "Zak Henry",
"license": "MIT",
"devDependencies": {
"api-blueprint-validator": "^0.1.3",
"api-blueprint-validator": "xiphiaz/api-blueprint-validator",
"protagonist": "^1.2.3"
}
}

0 comments on commit af1057a

Please sign in to comment.