pulumi/pkg/codegen
James Nugent 59a320f050
Stop producing pointers for map and slice elements (#7472)
This commit modifies Go program generation to prevent producing array
and slice object elements as pointers in args structures, which fails at
runtime and does not make sense in any case. For example, in the case of
a type defined like this in schema:

```json
"statements": {
  "type": "array",
  "items": {
    "$ref": "/aws/v4.8.0/schema.json#/types/aws:iam/getPolicyDocumentStatement:getPolicyDocumentStatement"
  }
},

```

The following (which fails at runtime) was produced before this change:

```go
Statements []*iam.GetPolicyDocumentStatement `pulumi:"statements"`
```

And the following is produced after after this change:

```go
Statements []iam.GetPolicyDocumentStatement `pulumi:"statements"`
```

Test expectations are updated accordingly.
2021-07-14 15:12:25 -07:00
..
docs [codegen/schema] YAML {un,}marshaling support. (#7509) 2021-07-13 16:41:40 -07:00
dotnet [codegen] Add type name generation tests. (#7470) 2021-07-09 10:23:10 -07:00
go Stop producing pointers for map and slice elements (#7472) 2021-07-14 15:12:25 -07:00
hcl2 Reify Input and Optional types in the schema type system. (#7059) 2021-06-24 09:17:55 -07:00
importer Reify Input and Optional types in the schema type system. (#7059) 2021-06-24 09:17:55 -07:00
internal/test Stop producing pointers for map and slice elements (#7472) 2021-07-14 15:12:25 -07:00
nodejs Fix Node.js intermediate module import path generation (#7473) 2021-07-14 15:12:15 -07:00
python [codegen/python] - Implement dynamic config-getters (#7447) 2021-07-14 14:26:50 -07:00
schema [codegen/schema] YAML {un,}marshaling support. (#7509) 2021-07-13 16:41:40 -07:00
docs.go Reify Input and Optional types in the schema type system. (#7059) 2021-06-24 09:17:55 -07:00
docs_test.go [codegen/docs] Reimplement example extraction. (#4851) 2020-06-18 12:32:15 -07:00
utilities.go Add helper methods to StringSet 2021-06-09 12:02:32 +02:00
utilities_test.go [codegen] Fix SimplifyInputUnion. (#7459) 2021-07-08 16:01:35 -07:00
utilities_types.go [codegen] Fix SimplifyInputUnion. (#7459) 2021-07-08 16:01:35 -07:00