From 0f1ba54ead07f4176720d5fb19e39dbf13b76b57 Mon Sep 17 00:00:00 2001 From: Philippe Cote-Boucher Date: Thu, 22 Oct 2020 13:59:52 -0400 Subject: [PATCH 1/2] add missing metadata key in rule schema --- rasa/utils/schemas/stories.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rasa/utils/schemas/stories.yml b/rasa/utils/schemas/stories.yml index 2284641e8804..799b13c3fa30 100644 --- a/rasa/utils/schemas/stories.yml +++ b/rasa/utils/schemas/stories.yml @@ -102,6 +102,9 @@ mapping: rule: type: "str" allowempty: False + metadata: + type: "any" + required: False steps: type: "seq" matching: "any" From 537c4e8bf36595fbdb93c8adbe77fd231e252fc1 Mon Sep 17 00:00:00 2001 From: Philippe Cote-Boucher Date: Thu, 22 Oct 2020 14:04:29 -0400 Subject: [PATCH 2/2] changelog entry --- changelog/7090.misc.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/7090.misc.md diff --git a/changelog/7090.misc.md b/changelog/7090.misc.md new file mode 100644 index 000000000000..a54a30600028 --- /dev/null +++ b/changelog/7090.misc.md @@ -0,0 +1 @@ +Amended the YAML schema for rules to allow for a metadata key. Previously only stories were allowed to have metadata.