We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f99e533 commit 2512009Copy full SHA for 2512009
packages/optimizely-sdk/lib/utils/json_schema_validator/index.ts
@@ -30,8 +30,8 @@ export function validate(jsonObject: unknown): boolean {
30
if (!jsonObject) {
31
throw new Error(sprintf(ERROR_MESSAGES.NO_JSON_PROVIDED, MODULE_NAME));
32
}
33
-
34
- const result = jsonSchemaValidator(jsonObject as {}, schema);
+ // eslint-disable-next-line @typescript-eslint/ban-types
+ const result = jsonSchemaValidator(jsonObject as object, schema);
35
if (result.valid) {
36
return true;
37
} else {
0 commit comments