Skip to content

Commit

Permalink
Fix some discovered issues (#3050)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Apr 26, 2024
1 parent 8df7874 commit 4553489
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/cfnlint/data/schemas/other/resources/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@
"Metadata": {
"$ref": "#/definitions/Metadata"
},
"Properties": {
"awsType": "CfnResourceProperties"
},
"Properties": {},
"Type": {
"type": "string"
},
Expand Down
1 change: 1 addition & 0 deletions src/cfnlint/decode/mark.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
"""

from dataclasses import dataclass


Expand Down
6 changes: 3 additions & 3 deletions src/cfnlint/jsonschema/_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def _filter_schemas(self, schema, validator: Any) -> Tuple[Any, Any]:
# Adding these items to the schema
# will allow us to continue to check the nested elements
if "cfnLint" not in standard_schema:
if (
"object" in ensure_list(standard_schema.get("type", []))
and "properties" not in standard_schema
if "object" in ensure_list(standard_schema.get("type", [])) and not any(
p not in standard_schema
for p in ["properties", "additionalProperties", "patternProperties"]
):
standard_schema["patternProperties"] = {
".*": {"type": _all_types},
Expand Down

0 comments on commit 4553489

Please sign in to comment.