Unstructured-IO / unstructured-api-tools

Apache License 2.0
28 stars 10 forks source link

chore: add msg and json file types #169

Closed ryannikolaidis closed 1 year ago

ryannikolaidis commented 1 year ago

.msg type doesn't get its mimetype resolved by mimetypes.guess_type, because of this we need an extra conditional here.

cragwolfe commented 1 year ago

Should there be another test for an unstructured .json payload? This is great, by the way. 🙏

ryannikolaidis commented 1 year ago

Should there be another test for an unstructured .json payload? This is great, by the way. 🙏

yep, I'll add that now

cragwolfe commented 1 year ago

@ryannikolaidis , correction: could be any .json file payload (does not need to be an "unstructured .json")

ryannikolaidis commented 1 year ago

@ryannikolaidis , correction: could be any .json file payload (does not need to be an "unstructured .json")

ack, just saw this. I did grab from unstructured, but happy to swap something else out.

cragwolfe commented 1 year ago

ack, just saw this. I did grab from unstructured, but happy to swap something else out.

no worries, the unstructured .json is also a json, so that works :)