Plugin Framework inconsistent behaviour when trying to rename a schema field nested under a collection #2803
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
Milestone
What happened?
Resources and datasources bridged via the Plugin Framework have a very inconsistent behaviour with
ProviderInfo
name overrides which prevents provider authors from working around naming issues, for example for pulumi/pulumi#17826The behaviour is different for properties in datasources versus resources and for each one, the behaviour is different with blocks versus attributes:
Blocks work correctly but attributes do not. For datasources the failure is silent, while for resource we get an irrelevant error message:
With the following
ProviderInfo
override for each:Note that the
.Fields
property is already on the.Elem
, so the error message is incorrect.Example
ListNestedAttribute datasource schema
ListNestedBlock datasource schema
ListNestedAttribute resource schema
ListNestedBlock resource schema
Output of
pulumi about
.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: