You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
rcoh
changed the title
[request]: Support serialization / deserialization of data structures
[request]: Support serialization / deserialization of data structures (regression testing)
Oct 21, 2021
Community Note
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
The text was updated successfully, but these errors were encountered: