Lightmatter / welkin-health

A Python wrapper of the Welkin Health API
https://welkin.readthedocs.io
Other
4 stars 3 forks source link

Add support for UUIDs in request payloads #77

Closed jdiaz5513 closed 8 months ago

jdiaz5513 commented 1 year ago

Because Welkin uses UUIDs for IDs it's a common footgun to accidentally pass an instantiated UUID class into the body of a welkin payload, causing a TypeError: Object of type UUID is not JSON serializable.

This may only require a few lines to add UUID support to clean_request_payload.