GeertBellekens / Enterprise-Architect-Toolpack

Addins and tools for Sparx Systems Enterprise Architect
https://bellekens.com/product/bellekens-enterprise-architect-toolpack/
BSD 2-Clause "Simplified" License
97 stars 39 forks source link

EA JSON ID has no valid URL #113

Open brothercorvo opened 2 years ago

brothercorvo commented 2 years ago

I'm trying to transform an existing UML model into a JSON one. After applying the transformations I have the JSON schema assigned. The tagged value ID is filled with a proper URL:

http://204.48.30.216:19023/manageAPI/getHelp

however I get this error message image

brothercorvo commented 2 years ago

the code in https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/blob/master/EAJSON/EAJSONSchema.cs indicate that this has to be a "valid RFC 2396.", and the URL above seems valid to me.

brothercorvo commented 2 years ago

it looks like has nothing to do with the URL. In fact if I reuse the same ID with a custom created model the schema is generated correctly. custom model image

ID image maybe the tagged value is not correctly applied? I also tried to sync the stereotype with no change

brothercorvo commented 2 years ago

final comment: this is a bug probably related to the application of the JSON profile to existing classes. In fact I can manually replicate a twin class using the toolbox (same ID) image

GeertBellekens commented 2 years ago

I'll have a look to see if I can reproduce it. Thanks for the detailed analysis

GeertBellekens commented 2 years ago

@brothercorvo I tried to reproduce the issue, but I can't make it fail, even when applying the JSON_Schema on an existing class. Could you attach an xmi export of the package containing the problem model?

brothercorvo commented 1 year ago

Sorry, I returned to this after a while. Today I tried to replicate the test and also the second class failed (?!). I created a new class and succeeded. XML attached image

JSONSChema_test.zip