aws-cloudformation / cloudformation-resource-schema

The CloudFormation Resource Schema defines the shape and semantic for resources provisioned by CloudFormation. It is used by provider developers using the CloudFormation RPDK.
Apache License 2.0
90 stars 38 forks source link

New property `relationshipRef` not in `provider.definition.schema.v1.json` #151

Open ewbankkit opened 3 months ago

ewbankkit commented 3 months ago

Recent updates to some CloudFormation resource schemas

have added a new property, relationshipRef , to certain properties, e.g.

        "Region": {
            "type": "object",
            "properties": {
                "Bucket": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 63,
                    "pattern": "^[a-z0-9][a-z0-9//.//-]*[a-z0-9]$",
                    "relationshipRef": {
                        "typeName": "AWS::S3::Bucket",
                        "propertyPath": "/properties/BucketName"
                    }
                }, 
                "BucketAccountId": {
                    "type": "string",
                    "minLength": 12,
                    "maxLength": 12,
                    "pattern": "^[0-9]{12}$"
                }
            },
            "required": [
                "Bucket"
            ],
            "additionalProperties": false
        }

This property has not been added to https://github.com/aws-cloudformation/cloudformation-resource-schema/blob/master/src/main/resources/schema/provider.definition.schema.v1.json, so validation of these resource schemas against the meta-schema are failing.