amazonka icon indicating copy to clipboard operation
amazonka copied to clipboard

amazonka-lexv2-runtime: generate

Open endgame opened this issue 2 years ago • 2 comments

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.

endgame avatar Dec 06 '21 00:12 endgame

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

endgame avatar Apr 29 '22 05:04 endgame

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?

endgame avatar Apr 29 '22 05:04 endgame