pulumi/pkg/codegen/internal/test/testdata/external-resource-schema
Pat Gavlin 1cc084dc0e
Fix inconsistent object type naming. (#6686)
See #6200 for a complete description of the issue. In short, we generate
inconsistent names for object types depending on whether or not they are
transitively reachable from resources or functions, which risks
unintentional breaking changes due to schema updates.

1. Name "input" types differently: `TArgs` for a type that is used in
   resource inputs, having `Input<T>` properties, and `T` for a type
   that is used in invoke inputs. The same schema type can produce both.

2. Always keep the name `T` for output types, avoid appending `Result` to
   the name.

3. As needed, introduce a flag in the existing providers' schemas to avoid
   breaking changes. Consider removing it on a major version bump.

Fixes #6200.
2021-04-15 19:03:28 -07:00
..
dotnet [codegen/dotnet]: Fix bugs referencing external resources/types (#6182) 2021-01-26 11:02:34 -08:00
go [deps] Ensuring pulumi/pulumi pkg references pulumi sdk v3.0.0-beta.1 2021-04-14 19:32:18 +01:00
nodejs Fix inconsistent object type naming. (#6686) 2021-04-15 19:03:28 -07:00
python/pulumi_example Fix inconsistent object type naming. (#6686) 2021-04-15 19:03:28 -07:00
schema.json Option to generate container types resources now specified in GoPackageInfo 2021-01-20 11:29:01 -08:00