diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e78e2d4eaf7..2f5ec620522 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -13,6 +13,8 @@ Added ----- - options to prevent slack from making re-deliver message upon meeting failure condition. the default is to ignore ``http_timeout``. +- added ability to create domain from yaml string and export a domain to a yaml string +- added server endpoint to fetch domain as json or yaml Changed ------- diff --git a/rasa_core/domain.py b/rasa_core/domain.py index 2d3d6b28d88..644e8c0d4fe 100644 --- a/rasa_core/domain.py +++ b/rasa_core/domain.py @@ -420,7 +420,7 @@ def load_from_yaml(cls, yaml, action_factory=None): ) @classmethod - def validate_domain_yaml(cls, input): + def validate_domain_yaml(cls, yaml): """Validate domain yaml.""" from pykwalify.core import Core @@ -429,7 +429,7 @@ def validate_domain_yaml(cls, input): schema_file = pkg_resources.resource_filename(__name__, "schemas/domain.yml") - source_data = utils.read_yaml_string(input) + source_data = utils.read_yaml_string(yaml) c = Core(source_data=source_data, schema_files=[schema_file]) try: