You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
disclaimer: I am neither an openapi nor an openapi-generator expert, and I'm interacting with github enterprise instance at my company, not 100% sure if the issue I'm facing really is a spec inaccuracy, but I thought this would be a good first step to ask before deciding to file the issue somewhere else)
An openapi-generator client generated from from https://github.com/github/rest-api-description/tree/main/descriptions/ghes-3.6 used to retrieve a pull_request fails on parsing the response "repo" field as it cannot find "has_discussions" inside (which is marked as required in the spec). The field is not found in the response obtained via curl leading me to believe this could be a schema inaccuracy
Expected
"repo" returned by pulls GET call should include has_discussions field, but does not.
Reproduction Steps
reproduction with curl
apologies for not showing the entire answer, but I hope this excerpt is enough
Schema Inaccuracy
disclaimer: I am neither an openapi nor an openapi-generator expert, and I'm interacting with github enterprise instance at my company, not 100% sure if the issue I'm facing really is a spec inaccuracy, but I thought this would be a good first step to ask before deciding to file the issue somewhere else)
An openapi-generator client generated from from https://github.com/github/rest-api-description/tree/main/descriptions/ghes-3.6 used to retrieve a pull_request fails on parsing the response "repo" field as it cannot find "has_discussions" inside (which is marked as required in the spec). The field is not found in the response obtained via curl leading me to believe this could be a schema inaccuracy
Expected
"repo" returned by pulls GET call should include has_discussions field, but does not.
Reproduction Steps
reproduction with curl
apologies for not showing the entire answer, but I hope this excerpt is enough
the schema at https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-3.6/ghes-3.6.json describes has_discussions field as required in the response, but it's missing
If one were to reproduce with an openapi-generator python client created as described in #2274 parsing the response would fail with:
The text was updated successfully, but these errors were encountered: