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

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

Open
dwagmuse opened this issue Oct 11, 2021 · 0 comments
Open

Comments

@dwagmuse
Copy link

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.

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