Skip to content

Commit

Permalink
feat: use Drafter v4
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Jan 25, 2019
1 parent f9f10b7 commit 034becf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/parse.js
Expand Up @@ -35,10 +35,12 @@ Falling back to API Blueprint by default.
let nativeError = null;

if (!(err || apiElements)) {
nativeError = new Error('Unexpected parser error occurred.');
nativeError = new Error('Unexpected parser error occurred');
} else if (err) {
// Turning Fury error object into standard JavaScript error
nativeError = new Error(err.message);
} else if (apiElements && apiElements.errors.length) {
nativeError = new Error('Parser finished with errors');
}

if (modifiedApiElements) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -27,7 +27,7 @@
],
"dependencies": {
"fury": "3.0.0-beta.8",
"fury-adapter-apib-parser": "0.12.0",
"fury-adapter-apib-parser": "0.13.0-beta",
"fury-adapter-oas3-parser": "0.3.0",
"fury-adapter-swagger": "0.23.1",
"uri-template": "1.0.1"
Expand Down

0 comments on commit 034becf

Please sign in to comment.