diff --git a/src/main/java/nl/imvertor/YamlCompiler/YamlCompiler.java b/src/main/java/nl/imvertor/YamlCompiler/YamlCompiler.java index bfe89866..ec9320cf 100644 --- a/src/main/java/nl/imvertor/YamlCompiler/YamlCompiler.java +++ b/src/main/java/nl/imvertor/YamlCompiler/YamlCompiler.java @@ -147,7 +147,7 @@ public boolean generateKING() throws Exception { // pretty print and store to json folder if (succeeds) { - // convert the json xml to Json. + // convert the json xml to Json without schema reference. XmlFile jsonXmlMappingFile = new XmlFile(configurator.getXParm("properties/RESULT_XML4JSONMAPPING_FILE_PATH")); JsonFile jsonFile = new JsonFile(configurator.getXParm("properties/RESULT_JSON_FROM_XML4JSON_FILE_PATH")); YamlFile yamlFile2 = new YamlFile(configurator.getXParm("properties/RESULT_YAML_FROM_XML4JSON_FILE_PATH")); @@ -155,10 +155,13 @@ public boolean generateKING() throws Exception { jsonXmlMappingFile.toJson(jsonFile); jsonFile.toYaml(yamlFile2); + // convert the json xml to Json with schema reference. XmlFile jsonXmlMappingFile2 = new XmlFile(configurator.getXParm("properties/RESULT_XML4JSONMAPPING_FILE_PATH2")); JsonFile jsonFile2 = new JsonFile(configurator.getXParm("properties/RESULT_JSON_FROM_XML4JSON_FILE_PATH2")); + jsonXmlMappingFile2.toJson(jsonFile2); + // convert for debug purposes the Json file generated in line 112 to a Json-mapping file. XmlFile jsonXmlMappingFile3 = new XmlFile(configurator.getXParm("properties/RESULT_XML4JSONMAPPING_FILE_PATH3")); JsonFile bodyFile = new JsonFile(configurator.getXParm("properties/RESULT_YAMLBODY_FILE_PATH")); JsonFile bodyFile2 = new JsonFile(configurator.getXParm("properties/RESULT_YAMLBODY_FILE_PATH2")); diff --git a/src/main/resources/cfg/YamlCompiler/parms.xml b/src/main/resources/cfg/YamlCompiler/parms.xml index f9c49524..5f847f61 100644 --- a/src/main/resources/cfg/YamlCompiler/parms.xml +++ b/src/main/resources/cfg/YamlCompiler/parms.xml @@ -46,13 +46,17 @@ ${system/work-imvert-folder-path}/imvertor.80.1.yaml-header.yml ${system/work-imvert-folder-path}/imvertor.80.2.yaml-body.json ${system/work-imvert-folder-path}/imvertor.80.3.yaml-body.json - ${system/work-imvert-folder-path}/imvertor.80.4.yaml.yml + ${system/work-imvert-folder-path}/imvertor.80.4.yaml.yml + ${system/work-imvert-folder-path}/imvertor.80.5.xml4jsonmapping.xml ${system/work-imvert-folder-path}/imvertor.80.6.xml4jsonmapping.xml ${system/work-imvert-folder-path}/imvertor.80.7.xml4jsonmapping.json ${system/work-imvert-folder-path}/imvertor.80.8.xml4jsonmapping.json ${system/work-imvert-folder-path}/imvertor.80.9.xml4jsonmapping.json ${system/work-imvert-folder-path}/imvertor.80.10.xml4jsonmapping.xml + ${system/work-imvert-folder-path}/imvertor.80.11.xml4yamlheadermapping.xml + + ${system/work-imvert-folder-path}/imvertor.25.3.1.nen3610-migrate.xml