aws-sdk-rust
aws-sdk-rust copied to clipboard
[request]: Support serialization / deserialization of data structures (regression testing)
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue, please leave a comment
Tell us about your request Support serialization and deserialization of Textract and other data structures returned as a result of queries to AWS services
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? For regression testing, I find it useful to cache Textract results to make sure they are being processed correctly for known documents. For this use case, it is useful to save the returned JSON and be able to deserialize it to the same data structures which are returned from live calls.
Are you currently working around this issue? I currently do this in Rusoto, it would be convenient to be able to deserialize saved JSON back to a GetDocumentAnalysisOutput structure. It looks like the existing serialization code is private and designed to work with HTTP responses.
If there is already an existing mechanism for this, please let me know.
Additional context The library works really well - thank you!
Attachments None
Related: #199
Thanks for the request! We're going to investigate ways to enable different sorts of record/replay as well as mock client construction to address these use cases.