opencaesar / oml

Ontological Modeling Language (OML)
http://www.opencaesar.io/oml/
Apache License 2.0
25 stars 4 forks source link

[BUG] - Validation of omlxmi files does not report missing imports #87

Open dwagmuse opened 3 years ago

dwagmuse commented 3 years ago

Description

Serializer for omlxmi files will fail to write file if imports are not complete. However, validation does not report this as an error prior to actually trying to write the file

Steps to Reproduce

This occurs most often when creating new omlxmi files or converting from earlier (0.9x) versions where imports were not required. It may not be a problem in new files created originally in OML tree editor (haven't tried that).

Open omlxmi file that has references to other namespace but no import for it. Validate file (should succeed) Make some minor value edit to cause save to rewrite the file Save This should produce an exception reporting the missing export

Expected Behavior

It would be most helpful if the validation process were to report these missing imports during validation (and maybe even fix them up automatically, or at least suggest the fix).

Additional Context

Enter any other details such as dependencies, environment, examples, etc.

Relevant screenshots

If applicable, add screenshots to help illustrate the issue.