Sparx Systems Forum

Discussion => Automation Interface, Add-Ins and Tools => Topic started by: MatthiasVDE on December 22, 2017, 02:19:03 am

Title: Generate data model subset + JSON
Post by: MatthiasVDE on December 22, 2017, 02:19:03 am
With the Message Composer from Geert Bellekens it's possible to create a subset from the canonical data model.
But if you want to generate JSON files you have to run the Schema Composer and create a new schema from that subset.

Is there a solution to do this in a simple way: create subset + generate json file?

Thanks
Title: Re: Generate data model subset + JSON
Post by: Simon M on January 02, 2018, 08:30:45 am
The bulk of the schema composer UI is dedicated to defining a subset. That subset can then be generated either to a new model package or to a schema definition file (in a variety of formats).

I'm not sure of Geert's Message Composer, but it sounds like it may be an unnecessary step.

Title: Re: Generate data model subset + JSON
Post by: Geert Bellekens on January 02, 2018, 05:16:23 pm
I'm not sure of Geert's Message Composer, but it sounds like it may be an unnecessary step.

That would be in case if
- The standard subset feature would not be flawed (try redefining a class and see what happens)
- The standard subset feature would have more options (like collapsing inheritance, traceability to source elements and features,...)
- The XSD generation from a profile would have the same options as the standard XSD generation in terms of tweaking the result.

With the current state of affairs the Schema Composer out of the box is not flexible enough to be used in a professional context to define messages and generate xsd's (or JSON's)

Geert