Open
Description
Schema Inaccuracy
The installation
schema's account
property has changed from an allOf
to a anyOf
description which results in a type which is the intersection of the two included types (simple-user
& enterprise
) rather than a union of the two.
"account": {
"nullable": true,
"anyOf": [
{
"$ref": "#/components/schemas/simple-user"
},
{
"$ref": "#/components/schemas/enterprise"
}
]
},
Expected
The account
property of the installation
schema should contain the union of the simple-user
and enterprise
schema types so that both type's properties are accessible from the returned response.
"account": {
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/simple-user"
},
{
"$ref": "#/components/schemas/enterprise"
}
]
},
Reproduction Steps
See octokit/openapi-types.ts#305 for example of improper resulting types.
Activity
Jman420 commentedon Jul 22, 2023
Any chance of this issue and related ones being addressed?
Related issue : #2510
/app/installations/
response octokit/openapi#388wolfy1339 commentedon Feb 21, 2025
Hi, is there any resolution to this?
Jman420 commentedon Feb 22, 2025
@wolfy1339 I believe this has been resolved... We no longer have any of the octokit packages pinned to lower versions in our project. Its been so long that I dont remember when or what PR addressed the issue though...