amazonka
amazonka copied to clipboard
amazonka-lexv2-runtime: generate
I'm capturing the services that we failed to generate in #701 as standalone issues because it was hard for me to find them. If you care about this service, please leave a comment or react so I can prioritise.
lexv2-runtime: generator fails to correctly deal with recursive types.
While #761 gives us some progress on recursive data types, the service definition seems to encode possible exceptions as if they were struct members, and this causes gen
to emit nonsense:
https://github.com/boto/botocore/blob/f4a5a8866e077e7cfe805f13f15c2a379630d9e5/botocore/data/lexv2-runtime/2020-08-07/service-2.json#L1385-L1410
Or, perhaps, the exceptions are possible items in an event stream, but gen
's code to handle exceptions prevents us from generating types in a useful way?