Skip to content

Commit

Permalink
Do not use regexp in favor of anyOf
Browse files Browse the repository at this point in the history
  • Loading branch information
ehartmann committed Nov 10, 2022
1 parent 0e4bef5 commit 93e997b
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/molecule/data/molecule.json
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,29 @@
},
"ScenarioSequence": {
"items": {
"type": "string",
"pattern": "(^check$)|(^cleanup$)|(^converge$)|(^create$)|(^dependency$)|(^destroy$)|(^idempotence$)|(^lint$)|(^prepare$)|(^side_effect *.*$)|(^syntax$)|(^test$)|(^verify *.*$)"
"anyOf": [
{
"enum": [
"check",
"cleanup",
"converge",
"create",
"dependency",
"destroy",
"idempotence",
"lint",
"prepare",
"side_effect",
"syntax",
"test",
"verify"
],
"type": "string"
},
{
"type": "string"
}
]
},
"title": "ScenarioSequence",
"type": "array"
Expand Down

0 comments on commit 93e997b

Please sign in to comment.