-
Notifications
You must be signed in to change notification settings - Fork 32
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
Repository search result: owner might be null #338
Comments
I am not able to reproduce the problem, I tried in several ways, see my typescript playground |
@gr2m for me, it shows 3 errors:
Or what do you mean by you were not able to reproduce? |
So I've found that the https://unpkg.com/browse/@octokit/[email protected]/types.d.ts#L10397 THat's because GitHub's official OpenAPI spec define's the As to why that is, or whether that is a bug, the best place to bring that up is https://github.com/github/rest-api-description/. Could you file an issue there? You can ping me and reference this issue, but then I'd close this issue because there is nothing actionable for us to do, we have to resolve this at the source of the OpenAPI spec |
@gr2m To be honest, I am completely lost here. I tried to figure out what It seems there are like 5 different repos having some kind of type definitions and all of them are only auto-updated by some bot. It seems like none of them have any actual human work, making the changes:
All of them seem like they could be relevant but I was not able to find the relevant change anywhere. I mean it must have happened in the last few days that Can you help me figure out where the change happened and what kind of issue I should open them? I did not feel like I have enough information to open an issue at |
blocked by github/rest-api-description#440 |
|
@gr2m
Should it not be |
I don't know, maybe there is a case when |
What happened?
With the upgrades:
My code stopped working because
repo.owner
might now benull
in:What did you expect to happen?
I expect
Repo.owner
to never benull
because every repo must have an owner. What would a repo without an owner be?What the problem might be
The actual type is now:
Before it was not
| null
.Related
In the same upgrade
Repo.description
also became nullable and I am not sure why that is. Is there some kind of changelog available that explains the reasons for these breaking changes? Thanks for all the work 🙏The text was updated successfully, but these errors were encountered: