aws-samples / amazon-textract-response-parser

Parse JSON response of Amazon Textract
Apache License 2.0
218 stars 95 forks source link

fix(js): Handle AnalyzeExpense missing geometries #140

Closed athewsey closed 1 year ago

athewsey commented 1 year ago

As noted in #102, AnalyzeExpense API may sometimes not return a geometry/bounding box for expense field detections where the text is empty "". Fixed the underlying API model and the TRP class to reflect this possibility. Updated sample response JSONs used for tests, and updated build environment NodeJS ver to most current LTS.

Issue #, if available: #102

Description of changes:

(In JavaScript/TS version of the library):

Open TODOs:


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

athewsey commented 1 year ago

Per positive user feedback on the linked issue, released mainline v0.2.1 and merging this change