Closed kasey closed 3 years ago
After fixing this and trying to generate a few other types, I saw that a similar leftover bug exists for "singleton" collection types -- in some places terraform uses single item lists/sets to represent singletons. I'm not going to open a separate bug for this because I think I've already fixed it and it's sort of similar, although in a different part of the code.
This was one of the cases marked as a
TODO
from the version of the generator demo'd at community day. The current state of this particular case is basically copy/paste from encode, so this task entails reversing the logic.