-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
540 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/cfnlint/data/schemas/other/deployment_files/git_sync.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"additionalProperties": false, | ||
"properties": { | ||
"parameters": { | ||
"patternProperties": { | ||
"^.+$": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"tags": { | ||
"patternProperties": { | ||
"^.+$": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"template-file-path": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"template-file-path" | ||
], | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
""" | ||
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
SPDX-License-Identifier: MIT-0 | ||
""" | ||
|
||
from cfnlint._typing import Any, RuleMatches | ||
from cfnlint.jsonschema import StandardValidator | ||
from cfnlint.rules.jsonschema.Base import BaseJsonSchema | ||
|
||
|
||
class Configuration(BaseJsonSchema): | ||
|
||
id = "E0100" | ||
shortdesc = "Validate deployment file configuration" | ||
description = ( | ||
"Validate if a deployment file has the correct syntax " | ||
"for one of the supported formats" | ||
) | ||
source_url = "https://github.com/aws-cloudformation/cfn-lint" | ||
tags = ["base"] | ||
|
||
def validate_deployment_file( | ||
self, data: dict[str, Any], schema: dict[str, Any] | ||
) -> RuleMatches: | ||
matches = [] | ||
|
||
validator = StandardValidator(schema) | ||
|
||
matches.extend(self.json_schema_validate(validator, data, [])) | ||
|
||
return matches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.