cloudformation-cli icon indicating copy to clipboard operation
cloudformation-cli copied to clipboard

cfn validate doesn't validate missing properties

Open richardhboyd opened this issue 3 years ago • 2 comments

If I have the following snippet in my schema

    "additionalProperties": false,
    "readOnlyProperties": [
        "/properties/TPSCode"
    ],
    "primaryIdentifier": [
        "/properties/TPSCode"
    ],

But I haven't actually defined a TPSCode in properties, I would expect cfn validate to fail.

richardhboyd avatar Oct 26 '21 01:10 richardhboyd

mentioned in https://github.com/aws-cloudformation/cloudformation-resource-schema/issues/17 and https://github.com/aws-cloudformation/cloudformation-cli/issues/408 as well

PatMyron avatar Oct 28 '21 18:10 PatMyron

@ammokhov , do you or anyone on the team have any time to review the PR?

mgentry612 avatar Jul 09 '22 20:07 mgentry612