[FEAT]: Provide response types with Sorbet #1659
Labels
Status: Stale
Used by stalebot to clean house
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Feature
New feature or request
Describe the need
Currently, the return type of all methods is
Sawyer::Resource
. This is pretty much a hash/dictionary object of the response body.It would be more useful to consumers of the Octokit gem to provide type safety and discoverability of the responses by creating models, similar to those provided for the TypeScript and .NET Octokit SDKs.
Using something like Sorbet would allow for strongly typed models, and can be automatically generated from GitHub OpenAPI schema using something like
openapi-sorbet
.SDK Version
No response
API Version
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: