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

Do not break when a dialog node's context has an empty key #382

Open xverges opened 5 years ago

xverges commented 5 years ago

If the dialog contains an empty line in a node's context editor

image

the node's context includes a "":"" dictionary element:

"parent": "Welcome",
            "context": {
                "": "",
                "clientProfile": {
...
                    "country": "Canada",
                    "firstName": "Guest"
                }
            },
...

and dialog_json2xml.py crashes without giving the user any clue about how to fix the problem (ValueError: Empty tag name)