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

Continuous Integration test failing with no code change #473

Open
lukestanley opened this issue May 28, 2024 · 0 comments
Open

Continuous Integration test failing with no code change #473

lukestanley opened this issue May 28, 2024 · 0 comments

Comments

@lukestanley
Copy link
Member

The Karma unit tests are failing:

Error: src/app/blocks/load-schema-block/load-schema-block.component.ts:81:9 - error TS2322: Type '{ title: any; description: any; type: string; properties: {}; }' is not assignable to type 'never'.

81 schemaDefinitions[schemaName] = await this.mapSchema(schemaDefinitions, get(result, '[0].data', {}), schemaName, depth);
Error: src/app/blocks/load-schema-block/load-schema-block.component.ts:229:7 - error TS2322: Type 'any' is not assignable to type 'never'.

229 schemaDefinitions[embedSchemaName] = await this.resolveSchema(schemaDefinitions, embedSchemaName, depth + 1);

But no code change was made. Presumably, a dependency has changed.

Questions:

I presume that the schema is user defined, and that we can't have a type set for it - is this true?
Is there a sensible way to fix this type error?
If a dependency changed, where is the version for it set?
Should we put the dependency back as it was or do something else?

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

No branches or pull requests

1 participant