brendanhay / amazonka

A comprehensive Amazon Web Services SDK for Haskell.
https://amazonka.brendanhay.nz
Other
605 stars 227 forks source link

gen: delegate toJSON calls to the payload field if it exists #790

Closed endgame closed 2 years ago

endgame commented 2 years ago

This should fix the ToJSON instances of some types in amazonka-glacier and amazonka-pinpoint.

While the generated request schema for glacier POSTs suggests that the job parameters are under an explicit key, the actual examples show them inlined into the body, just like the pinpoint requests described in #765.

This will fix the pinpoint services issue, but I'll close that with a "regenerate-all-services" PR.