Skip to content

Commit d5fa3b5

Browse files
Merge pull request BitGo#40 from ericcrosson-bitgo/39-rename-errors-to-error-for-consistency
fix!: rename errors to error in 400 responses
2 parents 5a2d9e8 + 9d04274 commit d5fa3b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/express-wrapper/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const decodeRequestAndEncodeResponse = <Route extends HttpRoute>(
4848
const validationErrors = PathReporter.failure(maybeRequest.left);
4949
const validationErrorMessage = validationErrors.join('\n');
5050
res.writeHead(400, { 'Content-Type': 'application/json' });
51-
res.write(JSON.stringify({ errors: validationErrorMessage }));
51+
res.write(JSON.stringify({ error: validationErrorMessage }));
5252
res.end();
5353
return;
5454
}

packages/openapi-generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"test/": "dist/test/"
4545
}
4646
},
47-
"timeout": "30s"
47+
"timeout": "1m"
4848
},
4949
"publishConfig": {
5050
"access": "public"

0 commit comments

Comments
 (0)