Closed DavyLandman closed 4 years ago
If needed we can enforce at TyphnML metamodel level, the presence of at least one field in each entity.
That could indeed be an idea, to not allow these identity types.
A model validator has been added. In particular, it throws an alert when an entity doesn't contain attribute or relation. Models with empty entities are no longer valid. The xtext concrete syntax reflects this behavior. Please, let me know if this solution completely addresses your issue.
Looks good, is there a way to make a nicer message?
Yes, it is possible. Currently, I added a custom message, but it doesn't be displayed appropriately. Can we consider this issue as closed?
Currently, an entity with no fields or relationships will not exists in our model. Either we decide that these entities are not supported, or we have to have a special set of just the entity names.