Open paul-uz opened 2 weeks ago
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.
So in this case, I'm using OpenAPI for my path definitions. Hopefully that is of some help to you.
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