IBM / watson-assistant-workbench

Framework for maintaining Watson Assistant data in github repository with bundle of tools for generating, testing and uploading. Travis: https://travis-ci.com/IBM/watson-assistant-workbench. Artifactory (will be deleted after 25 Nov 2019): https://na.artifactory.swg-devops.com/artifactory/webapp/#/artifacts/browse/tree/General/iot-waw-trevis-generic-local.
Apache License 2.0
16 stars 25 forks source link

fixed xml2json and json2xml scripts to support new WA output format. #386

Open samimarreed opened 4 years ago

samimarreed commented 4 years ago

WA has new output schema, which looks like this :

"output": {
            "generic": [
                {
                    "values": [
                        {
                            "text": "val1"
                        },
                        {
                            "text": "val2"
                        }
                    ],
                    "selection_policy": "random",
                    "response_type": "text"
                }
            ]
}        

this pull requests fixes the scripts ( xml2json and json2xml ) to support this change.