yanyongyu / githubkit

The modern, all-batteries-included GitHub SDK for Python, including rest api, graphql, webhooks, like octokit!
https://yanyongyu.github.io/githubkit/
MIT License
177 stars 25 forks source link

Fix: Add wrapper to prep data for JSON encoding #22

Closed dosisod closed 1 year ago

dosisod commented 1 year ago

The pydantic_encode function doesn't work with dict. list, str, int, etc. objects out of the box, so I had to make a small wrapper to get it to work. I haven't tested this extensively, but I know it isn't throwing a validation error anymore.

Closes #21.