cfn-lint icon indicating copy to clipboard operation
cfn-lint copied to clipboard

AWS::ApiGateway::Stage MethodSettings ResourcePath must start with a / #190

Open benbridts opened this issue 3 years ago • 0 comments

cfn-lint version: (cfn-lint --version) 0.53.0

Description of issue.

When specifying a ResourcePath, there are complicated rules (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-stage-methodsetting.html#cfn-apigateway-stage-methodsetting-resourcepath). One thing that is certain, is that it has to start with a /. The current Spec file, does not have any validation on that:

"ResourcePath": {
    "description": "...",
    "type": "string"
},

It would be nice if writing ResourcePath: * would throw an error, so that it's more likely that people write ResourcePath: /*. Ideally the full set of rules would be encoded in the spec.

benbridts avatar Oct 19 '21 10:10 benbridts