Skip to content
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

Fixed type for errorCauses in OktaApiError #397

Merged
merged 8 commits into from
Jun 27, 2023

Conversation

denysoblohin-okta
Copy link
Contributor

@denysoblohin-okta denysoblohin-okta commented Jun 16, 2023

Type fix: errorCauses of OktaApiError should have type {errorSummary: string}[], not string
https://github.com/okta/okta-sdk-nodejs/pull/397/files#diff-392f545291dc836e0a38e75af8285b4f4bfdcd1477d2570ad54ecaa2032045ed

Resolves #374
Copy of #377
Internal ref: OKTA-572970

const endpointWithVars = endpoint.replace(/{(\w+)}/g, (match, key) =>
this._encodeParam(vars?.[key]) || match
);
const endpointWithVars = endpoint.replace(/{(\w+)}/g, (match, key) => this._encodeParam(vars?.[key]) || match);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix linting errors reported during yarn build:openapi after PR #395

@@ -41,6 +42,7 @@ describe('Device API', () => {
await client.deviceApi.deactivateDevice({
deviceId: testDevice.id
});
await utils.delay(1000);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix flacky tests

@denysoblohin-okta denysoblohin-okta force-pushed the od-error-fix-OKTA-572970 branch from f57f1a5 to cfe395a Compare June 27, 2023 13:36
@denysoblohin-okta denysoblohin-okta changed the base branch from master to 7.0 June 27, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OktaApiError type doesn't match response from Okta.Client
4 participants