OntoUML / ontouml-vp-plugin

A plugin for Visual Paradigm to add support for OntoUML modeling and model intelligence services
Apache License 2.0
36 stars 15 forks source link

JSON serialization always includes Visual Paradigm's default datatype #72

Closed tgoprince closed 2 months ago

tgoprince commented 3 years ago

Whenever we serialize a model in JSON (compliant with ontouml-schema), we include all Visual Paradigm's default dataypes, namely:

This happens regardless if a model actually uses these datatypes or not.

I think the plugin should only serialize them if they are referenced by an attribute.

matheuslenke commented 2 months ago

Hey Tiago, I couldn't reproduce this issue. After doing some research in the code, I found that it was already fixed by @claudenirmf with the following lines of code at IProjectTransformer.java with the getUsedDatatypes method.

image