Skip to content

Commit 7110c75

Browse files
committed
fix syntax in schema merging
1 parent 62761ca commit 7110c75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

st2common/st2common/util/config_loader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ def _get_object_properties_schema(object_schema, object_keys=None):
153153
# This naive schema composition approximates allOf.
154154
# We can improve this later if someone provides examples that need
155155
# a better allOf schema implementation for patternProperties.
156-
composed_schema = {**schema for schema in key_schemas}
156+
composed_schema = {}
157+
for schema in key_schemas:
158+
composed_schema.update(schema)
157159
# update matched key
158160
flattened_properties_schema[key] = composed_schema
159161
# don't overwrite matched key's schema with additionalProperties

0 commit comments

Comments
 (0)