Closed nsenave closed 8 months ago
Note: I tried to replace jaxb with jackson, but maintaining the json <-> xml conversions would be too much work (too much risks).
Switch to jackson will be done when the xml format will no longer be required (i.e. when Eno v3 can do the Pogues to DDI transformation)
Summary
90
The
synonyms
property this time.Done
Why a dirty "pre-processing" class?
The current output of Pogues app for suggesters (including field synonyms) is as it should be in Lunatic. I wanted to keep that.
Yet XSD generated classes doesn't allow to have key/value pairs (at least not without some hacking which would be worst).
So, I added a pre-processing step for json questionnaire inputs to change key/value pairs into source/target fields.
In the end, the usage of this is as follows:
=> Later on, when Eno v3 does the Pogues to DDI/Lunatic transformation, we will only use the json representation in Pouges-Model and this pre-processing will be removed.