Skip to content

Commit 222c968

Browse files
authored
Add Items to map function in state machine definition (#4097)
1 parent 7d4e7e8 commit 222c968

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/cfnlint/data/schemas/other/step_functions/statemachine.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,12 @@
537537
"additionalProperties": true,
538538
"type": "object"
539539
},
540+
"Items": {
541+
"type": [
542+
"string",
543+
"array"
544+
]
545+
},
540546
"ItemsPath": {
541547
"type": [
542548
"string",

src/cfnlint/rules/resources/stepfunctions/StateMachineDefinition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
from copy import deepcopy
1111
from typing import Any
1212

13-
import cfnlint.data.schemas.other.resources
1413
import cfnlint.data.schemas.other.step_functions
15-
import cfnlint.helpers
1614
from cfnlint.helpers import is_function
1715
from cfnlint.jsonschema import ValidationError, ValidationResult, Validator
1816
from cfnlint.rules.helpers import get_value_from_path
@@ -89,6 +87,8 @@ def _convert_schema_to_jsonata(self):
8987
}
9088
}
9189
]
90+
for k in ["ItemsPath", "MaxConcurrencyPath"]:
91+
schema["definitions"]["map"]["properties"][k] = False
9292
return schema
9393

9494
def _clean_schema(self, validator: Validator, instance: Any):

0 commit comments

Comments
 (0)