-
Notifications
You must be signed in to change notification settings - Fork 60
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
Incomplete schema mapping from GitHub API to Owner type #50
Comments
The complete list of missing fields is
Unfortunately, |
Oh never mind, I see that |
Yeah, I left out a good chunk of the Feel free to open a PR with the fix you added. |
avatar_url is just |
I'm still not opposed to this change (it's better to hew closer to GitHub's actual schema when possible), but this is a good point. We should add the URL fields for every cc @KristofferC, since you have a PR for part of this |
What I meant is that we hardcode paths e.g. here: https://github.com/JuliaWeb/GitHub.jl/blob/master/src/owners/owners.jl#L78
If so, that doesn't work with skinny objects any more. If not, then why do we want to expose those fields? We could compute them on-demand from the hardcoded strings. |
Not really since the API is field access? |
The
GitHub.Owner
type is missing several fields which can be returned from a GitHub API query returning a representation of a GitHub user.For example, a GitHub API query to
https://api.github.com/repos/JuliaLang/julia/contributors
(as would be accessed bycontributors("JuliaLang/julia")
returns records in raw JSON of the formSeveral of these fields, notably the
*_url
fields likeavatar_url
, have no corresponding field representation in theGitHub.Owner
type. Unfortunately, the lack of this information completely breaks code that relied on having this data, such as the World of Julia notebook (which wants theavatar_url
fields).cc @jrevels
The text was updated successfully, but these errors were encountered: