pulumi/pkg/codegen/internal/test/testdata/simple-enum-schema
Justin Van Patten c504ccc12d
[codegen/python] Adopt improved key translation (#6696)
This change updates the Python SDK codegen to opt-in to the new casing
translation behavior, which will use the passed-in props type's property
name metadata for translations, rather than calling the resource's
`translate_input_property` and `translate_output_property` methods.

- FIX: Keys in user-defined dicts will no longer be unintentionally
  translated/modified.

- BREAKING: Dictionary keys in nested output classes are now
  consistently snake_case. If accessing camelCase keys from such output
  classes, move to accessing the values via the snake_case property
  getters (or snake_case keys). A warning will be logged when accessing
  camelCase keys.

When serializing inputs:

- If a value is a dict and the associated type is an input type, the
dict's keys will be translated based on the input type's property
name metadata.

- If a value is a dict and the associated type is a dict (or Mapping),
the dict's keys will _not_ be translated.

When resolving outputs:

- If a value is a dict and the associated type is an output type, the
dict's keys will be translated based on the output type's property
name metadata.

- If a value is a dict and the associated type is a dict (or Mapping),
the dict's keys will _not_ be translated.
2021-04-07 12:35:19 -07:00
..
dotnet [codegen/python] - Fix python .get() codegen (#6433) 2021-03-01 09:54:25 -08:00
go/plant Changing the version of go.mod in sdk / pkg to be v3 2021-04-05 22:44:46 +01:00
nodejs Change nodejs codegen to use coalescing operator when when default values are present (#6496) 2021-03-10 21:16:18 +00:00
python/pulumi_plant [codegen/python] Adopt improved key translation (#6696) 2021-04-07 12:35:19 -07:00
schema.json Changing the version of go.mod in sdk / pkg to be v3 2021-04-05 22:44:46 +01:00