From e39341e5660d1787285d9a351e255ef577f98c8f Mon Sep 17 00:00:00 2001 From: Eric Hartmann <112486+ehartmann@users.noreply.github.com> Date: Mon, 5 Dec 2022 15:57:14 +0100 Subject: [PATCH] Allow side_effect and verify to have parameters (#3730) * Allow side_effect and verify to have parameters Fix #3729 * Do not use regexp in favor of anyOf --- src/molecule/data/molecule.json | 40 +++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/src/molecule/data/molecule.json b/src/molecule/data/molecule.json index 00b867b31f..ff1e43d841 100644 --- a/src/molecule/data/molecule.json +++ b/src/molecule/data/molecule.json @@ -457,24 +457,30 @@ "type": "object" }, "ScenarioSequence": { - "additionalProperties": false, "items": { - "enum": [ - "check", - "cleanup", - "converge", - "create", - "dependency", - "destroy", - "idempotence", - "lint", - "prepare", - "side_effect", - "syntax", - "test", - "verify" - ], - "type": "string" + "anyOf": [ + { + "enum": [ + "check", + "cleanup", + "converge", + "create", + "dependency", + "destroy", + "idempotence", + "lint", + "prepare", + "side_effect", + "syntax", + "test", + "verify" + ], + "type": "string" + }, + { + "type": "string" + } + ] }, "title": "ScenarioSequence", "type": "array"