Incorrect index accessor against optional property #11495
Labels
area/codegen
SDK-gen, program-gen, convert
kind/bug
Some behavior is incorrect or out of spec
language/javascript
resolution/duplicate
This issue is a duplicate of another issue
What happened?
Attempting to access a nested property within an optional array property generates invalid TypeScript code.
Steps to reproduce
Run
pulumi convert --language typescript --out typescript
for the following YAML program.Expected Behavior
Output should be generated as:
Actual Behavior
Output should be generated as:
Required change is a single dot:
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: