Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support some JSON array endpoints #151

Merged
merged 2 commits into from
Oct 17, 2022

Conversation

scop
Copy link
Contributor

@scop scop commented Oct 17, 2022

Some endpoints return JSON arrays instead of objects. This adds support for two such ones, and related sniffing where proper Content-Type isn't available.

The casts here are not nice at all, but going all the way with fixing the type hints to accommodate this would result in the need to add lots of them all over the codebase. And because some of the lower level return type hints are incorrect already, adding these bits doesn't seem that gross.

(No need for a release for this either yet, as far as I'm concerned, I have still some other bits pending.)

@Salamek Salamek merged commit f3194a7 into Salamek:master Oct 17, 2022
@scop scop deleted the feat/json-array-endpoints branch October 17, 2022 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants