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

It is difficult to locate the standard schemas delivered as part of the core-backend package #6145

Open
ColinKerr opened this issue Oct 25, 2023 · 0 comments · May be fixed by #7347
Open

It is difficult to locate the standard schemas delivered as part of the core-backend package #6145

ColinKerr opened this issue Oct 25, 2023 · 0 comments · May be fixed by #7347
Assignees
Labels
ecschema Issues related to the various ecschema packages

Comments

@ColinKerr
Copy link
Member

ColinKerr commented Oct 25, 2023

The schemas can be found in the native assets directory as specified here: https://www.itwinjs.org/reference/core-backend/imodelhost/knownlocations/

The user then needs to know that schemas are in ECSchemas/Standard sub directory.

Consider making a locater that can find these schemas and can be added to any context.
Consider also having a locater that can locate the delivered domain schemas (like BisCore). This may not be directly possible due to the fact that core-backend does not depend on ecschema-metadata and ecschema-locaters should not depend on core-backend.

BisCore and other domain schemas return their path via a property on the class for that schema (e.g. BisCoreSchema). So long as it's easy to load them given the full paths that may be enough

Locating these schemas should be opt in or lowest priority so any location specified by the user takes precedence.

@ColinKerr ColinKerr added the ecschema Issues related to the various ecschema packages label Oct 25, 2023
@RohitPtnkr1996 RohitPtnkr1996 self-assigned this Jun 14, 2024
@RohitPtnkr1996 RohitPtnkr1996 removed their assignment Jul 18, 2024
@RohitPtnkr1996 RohitPtnkr1996 self-assigned this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ecschema Issues related to the various ecschema packages
Projects
None yet
2 participants