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

Types' orders #149

Open
pedropaulofb opened this issue Jun 28, 2023 · 0 comments
Open

Types' orders #149

pedropaulofb opened this issue Jun 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pedropaulofb
Copy link
Member

pedropaulofb commented Jun 28, 2023

In its current version (0.5.3), the plugin allows an user to create classes stereotyped with type that:

a) have an invalid order (e.g., the char 'x')
b) have order 0
c) have order 1
d) have order >1
e) orderless

Each option has the following situation:

a) The JSON is generated with its order field with null value (which should not occur, considering that there is a default value for this and, hence, the order field should be non nullable)
b) The syntactical evaluation falsely reports that no order was assigned. In fact, the order was incorrectly assigned and should be considered invalid.
c) The syntactical evaluation does not report problems for a class with order 1. The correct behavior would be to report that "the class must have a unique OntoUML stereotype", it is a first-order type. To create a valid model the user must create classes stereotyped as types only for high-order types.

Cases d and e are the correct use of the type sterotype.

Also, if the user manually deletes the order Tagged Value, the syntactical validation reports no problem.

I propose forbidding the inclusion of values other than * and than integers lower than 2.

In addition, any type without a specialization relation should be considered incomplete (not syntactically wrong) and, hence, the user should be notified (e.g., via a warning).

@pedropaulofb pedropaulofb added the bug Something isn't working label Jun 28, 2023
@matheuslenke matheuslenke added this to the Solve all Bugs milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants