pulumi/sdk/nodejs/cmd/pulumi-language-nodejs/testdata/tsnode/sdks/plain-13.0.0
Fraser Waters d00528918e
Add a conformance test for preserving map keys (#17350)
This adds a conformance test checking we can use map keys like "MY_KEY"
and maintain their casing through program gen. For Python we need to
simplify the type passed to genObjectConsExpression so that we can
reliably determine the target type and check if it's a `TypedDict` or
not, otherwise we might treat it as a plain object and preserve the
keys, instead of `PyName`ing them.

This deletes the "typeddict" test from the codegen tests. Firstly this
is now covered by these conformance tests, secondly it wasn't actually
valid because the schema it was testing against wasn't a valid schema,
and the program snapshot was only how it was because of a bug in
programgen.

That bug is now fixed in this change which fixes
https://github.com/pulumi/pulumi/issues/17294.

---------

Co-authored-by: Julien Poissonnier <julien@caffeine.lu>
2024-10-11 13:34:46 +00:00
..
types Add plain properties conformance test (#17411) 2024-09-30 16:48:34 +00:00
README.md Add plain properties conformance test (#17411) 2024-09-30 16:48:34 +00:00
index.ts Add plain properties conformance test (#17411) 2024-09-30 16:48:34 +00:00
package.json Add plain properties conformance test (#17411) 2024-09-30 16:48:34 +00:00
provider.ts Add plain properties conformance test (#17411) 2024-09-30 16:48:34 +00:00
resource.ts Add a conformance test for preserving map keys (#17350) 2024-10-11 13:34:46 +00:00
tsconfig.json Add plain properties conformance test (#17411) 2024-09-30 16:48:34 +00:00
utilities.ts Add plain properties conformance test (#17411) 2024-09-30 16:48:34 +00:00

README.md