Allow for resource type refs in schema #3069
Labels
area/tfgen
Issues in pkg/tgen, excluding docs generation - use area/docsgen for those
kind/bug
Some behavior is incorrect or out of spec
Currently, when we add extra types that actually reference a resource, the bridge generates tokens of the format::
"$ref": "#/types/aws:apigateway/restApi:RestApi"
.But
aws:apigateway/restApi:RestApi
is a resource, resulting in dangling schema types.To fix this, the bridge should use the
#resources
prefix to the type ref.Sample desired diff:
The text was updated successfully, but these errors were encountered: