You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run cfn-lint, it does not check the validity of the paths in DefinitionBody under the AWS::Serverless::Api resource.
Cloudformation errors when there are issues, but running cfn-lint, these issues are not caught.
EG
1 validation error detected: Value 'Errors found during import: Unable to create resource at path '/clients/membership/{$clientId}': Resource's path part only allow a-zA-Z0-9._-: or a valid greedy path variable and curly braces at the beginning and the end.
This was caused by having a $ symbol in the path parameter, {$clientId} but cfn-lint did not pick this up.
Expected behavior
cfn-lint should check the DefinitionBody in AWS::Serverless::Api resources.
Since this dumps into a generic json object we will need to figure out how to define a JSON schema for this. We do this for IAM policies, step functions, etc.
CloudFormation Lint Version
1.10.3
What operating system are you using?
Mac OS
Describe the bug
When I run cfn-lint, it does not check the validity of the paths in DefinitionBody under the AWS::Serverless::Api resource.
Cloudformation errors when there are issues, but running cfn-lint, these issues are not caught.
EG
This was caused by having a
$
symbol in the path parameter,{$clientId}
but cfn-lint did not pick this up.Expected behavior
cfn-lint should check the DefinitionBody in AWS::Serverless::Api resources.
Reproduction template
The text was updated successfully, but these errors were encountered: