Book a Demo

Author Topic: customized json schema - how does the schema composer work?  (Read 2700 times)

EvaSchreck

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
customized json schema - how does the schema composer work?
« on: December 12, 2018, 06:20:35 am »
Hello all together,

I need to generate json schema for UML classes. They need to serve as input for ETL processing. So I need to enhance the schema with custom keys for the ETL processing.

My fist experiments with the schema composer were partly successful. I got a valid json schema ... a good starting point. But now my question: How can I modify the json generated?
a) Is there a kind of transformation template? Is there an "intermediate language" in schema composer like with other transformations?
b) I know I can call a script on generation. But how can I modify the json generation process so that the output is what I want?

Maybe I am on the complete wrong way of thinking for a solution for this. I searched the forum and the web incl the EA user guide and didn't find any good answers. Therefore I am asking here for advice.

Thanks in advance for your answers.
Eva

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: customized json schema - how does the schema composer work?
« Reply #1 on: December 12, 2018, 03:39:26 pm »
You can't. The schema composer is a black box without the option to somehow influence the results (apart from changing the input)

That is one of the reasons we don't use it to generate the output format (usually XSD)
We do use the Schema Composer to cherry-pick the contents of our messages from the canonical model, we we generate a subset model from it and then use other means to generate the output.

Geert