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 `handlerSchema` in `handlerDefinition` not in `provider.definition.schema.v1.json` #145

Closed ewbankkit closed 1 year ago

ewbankkit commented 1 year ago

Recent updates to some CloudFormation resource schemas

have added a new property, handlerSchema, to certain handlers, e.g.

    "list": {
      "handlerSchema": {
        "properties": {
          "GlobalNetworkId": {
            "$ref": "resource-schema.json#/properties/GlobalNetworkId"
          }
        },
        "required": ["GlobalNetworkId"]
      },
      "permissions": [
        "networkmanager:GetTransitGatewayRegistrations"
      ]
    },

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.

kadrach commented 1 year ago

https://github.com/aws-cloudformation/cloudformation-resource-schema/pull/147