metanorma / iso-10303-templates

Annotated EXPRESS rendering templates for ISO 10303
0 stars 0 forks source link

Module schemas need to be added into the schemas_all.yaml file #23

Open ronaldtse opened 5 months ago

ronaldtse commented 5 months ago

Right now the collection does not include module documents, so the schemas are not collected inside schemas_all.yaml.

We need to either include all the module documents in the collection, or use a new schemas_all.yaml that includes EVERYTHING.

ronaldtse commented 5 months ago

The workaround for a module document now is just:

Was:

:lutaml-express-index: schemas; ../../schemas_all.yaml;

Change to:

:lutaml-express-index: schemas; schemas.yaml;
TRThurman commented 5 months ago

@ronaldtse, clarification request: isn't schemas all exist in the scope of the srl, which is limited to resources?

Maybe you are doing integration testing using the smrl approach?

ronaldtse commented 5 months ago

@TRThurman Do the resource and module schemas reference each other? If they do, and if they are in the same collection, we need to load both types of schemas in the same instance so the links can be generated.

TRThurman commented 5 months ago

@ronaldtse modules reference resource schemas. resources just reference other resource documents. For now keep it as you say.

ronaldtse commented 5 months ago

I actually wonder if we should split the resource and module documents into two folders for easier management.

TRThurman commented 5 months ago

Maybe, depends how much monkeying around you are doing with the collection files. Probably let it be the way it is since that will work, and modules do need to reference the resource schemas.

TRThurman commented 5 months ago

suggestion: keep a stable environment until after the ISO SC4 meeting.