-
Notifications
You must be signed in to change notification settings - Fork 22
fix!: rename errors to error in 400 responses #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix!: rename errors to error in 400 responses #40
Conversation
For consistency, since the value of this key is a scalar (`string`) and not a vector, and for congruence with our convention at BitGo of handling errors. Closes BitGo#39 BREAKING CHANGE: rename `errors` to `error` in 400 response
054a2ed to
cb76bc4
Compare
oof! We hit a timeout-related flake in this CI run[^1] ``` @api-ts/openapi-generator:test: @api-ts/openapi-generator:test: ✖ Timed out while running tests @api-ts/openapi-generator:test: @api-ts/openapi-generator:test: 14 tests were pending in test/test-corpus.ts @api-ts/openapi-generator:test: @api-ts/openapi-generator:test: ◌ should parse array types @api-ts/openapi-generator:test: ◌ should parse boolean literals @api-ts/openapi-generator:test: ◌ should parse discriminated unions @api-ts/openapi-generator:test: ◌ should simplify intersections of plain types @api-ts/openapi-generator:test: ◌ should handle multiple routes at different paths @api-ts/openapi-generator:test: ◌ should parse unions of multiple types @api-ts/openapi-generator:test: ◌ should parse explicit nulls @api-ts/openapi-generator:test: ◌ should read optional properties @api-ts/openapi-generator:test: ◌ should parse record types @api-ts/openapi-generator:test: ◌ should handle multiple routes at one path @api-ts/openapi-generator:test: ◌ should create an OpenAPI spec @api-ts/openapi-generator:test: ◌ should parse string unions @api-ts/openapi-generator:test: ◌ should handle unknown properties in responses @api-ts/openapi-generator:test: ◌ should parse version tags @api-ts/openapi-generator:test: @api-ts/openapi-generator:test: ─ @api-ts/openapi-generator:test: @api-ts/openapi-generator:test: npm ERR! Lifecycle script `test` failed with error: @api-ts/openapi-generator:test: npm ERR! Error: command failed @api-ts/openapi-generator:test: npm ERR! in workspace: @api-ts/openapi-generator@0.1.0 @api-ts/openapi-generator:test: npm ERR! at location: /home/runner/work/api-ts/api-ts/packages/openapi-generator @api-ts/openapi-generator:test: Error: command finished with error: command (packages/openapi-generator) npm run test exited (1) ``` Tests thankfully don't take close to 30 seconds locally (though they are slow -- around 10s) but in parallel CI with shared compute resources, anything goes. This commit bumps the test timeout from 30 seconds to 1 minute to avoid flakes of this sort in the future. [^1]: https://github.com/BitGo/api-ts/runs/5980525873?check_suite_focus=true
| } | ||
| }, | ||
| "timeout": "30s" | ||
| "timeout": "1m" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relevant documentation: https://github.com/avajs/ava/blob/main/docs/07-test-timeouts.md
|
🎉 This PR is included in version 1.0.0-beta.1 🎉 The release is available on npm package (@beta dist-tag) Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 0.2.0-beta.1 🎉 The release is available on npm package (@beta dist-tag) Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 0.1.1-beta.1 🎉 The release is available on npm package (@beta dist-tag) Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 0.2.0-beta.1 🎉 The release is available on npm package (@beta dist-tag) Your semantic-release bot 📦🚀 |
For consistency, since the value of this key is a scalar (
string)and not a vector, and for congruence with our convention at BitGo of
handling errors.
Closes #39