-
Notifications
You must be signed in to change notification settings - Fork 11
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
[BUG]: GitHub App Installation DataStructure's account property is missing data fields #305
Comments
This is actually not a bug from us, this comes from GitHub. I suspect they changed an You can file an issue here: https://github.com/github/rest-api-description/ |
@wolfy1339 Thanks for the guidance. Gonna dig in and open an issue over there. Would you like this issue closed once I open one in the github repo? |
This one can stay open for tracking on our side. You can also link back to here in the issue you create in the GitHub repo |
loooks like octokit/types.ts#534 is a related issue |
This issue doesn't appear to be getting addressed by GitHub. Is there any recommendation that I can patch the issue in this repo while we wait for GitHub to fix the documentation issue? |
We can possibly add an override for this scenario in the |
I'm happy to draft a fix if someone can point me in the right direction. Just not sure where the right place is... |
There isn't really any docs on the subject. You will have to copy from the other overrides. The override goes here, in this folder: You also need to edit https://github.com/octokit/openapi/blob/main/scripts/overrides/index.mjs to add the override. |
Got it. No worries about docs... those examples should be good to get me off the ground. Thanks! |
that's a good call out, we should absolutely add a note about overrides to https://github.com/octokit/openapi/blob/main/CONTRIBUTING.md |
@wolfy1339 or @gr2m Are there any pointers you can give me for creating the actual override json? Can I copy an original from somewhere or generate it from the original spec to start making my modifications? I figured out how I need to add the entries to index.mjs and that I need two override files (one with references & one with the references replaced with the referenced spec). But not sure where to get an original file to start editing for the overrides. |
You can copy the definition from the OpenAPI spec and make modifications to that. You can follow the general structure of the other files |
Add override for `/app/installations/` response for account property to be an `allOf` list instead of `anyOf` Resolves octokit/openapi-types.ts#305
What happened?
Upgrading to the latest version of Octokit OpenAPI Types has removed a large number of fields from the account property of the InstallationFunctionOptions type. Previously this property contained the union of both simple-user and enterprise schemas, but the latest version seems to have changed this to only the intersection of the two types.
Latest version snippet from types.d.ts :
Previous version :
Versions
octokit@2.0.14
node@18.16.0
Working OpenAPI-Types : @octokit/openapi-types@16.0.0
Broken OpenAPI-Types : @octokit/openapi-types@17.0.0
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: