-
Notifications
You must be signed in to change notification settings - Fork 3
Openapi based client proof of concept #78
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
Open
WyriHaximus
wants to merge
108
commits into
main
Choose a base branch
from
openapi-based-client-proof-of-concept
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
108 commits
Select commit
Hold shift + click to select a range
a7a879e
Openapi based client proof of concept
WyriHaximus 799858f
Drop dependancies for now
WyriHaximus 6fe9bde
Ignore some things
WyriHaximus 8c0ad54
Add all avialable API version
WyriHaximus 21f3fb9
Prefix versions with v
WyriHaximus ca0fb8a
Add mocked webhooks (It's crappy but it's a start)
WyriHaximus 481f1bb
Adding type hinting to arrays
WyriHaximus d6f1a75
Typed properties :D
WyriHaximus 43a122b
Nullable all the thigns!
WyriHaximus 5cb409f
Simplefied webhooks for now
WyriHaximus a18a296
Gah
WyriHaximus 1c5439f
wafefaeafew
WyriHaximus bf7c125
asdfads
WyriHaximus 42d5d22
Deal with weird property naming
WyriHaximus 06d504d
Plus and minus signs...
WyriHaximus 38599e4
Dashes in class names
WyriHaximus 2c8476c
Annotations!
WyriHaximus ea235f7
object => array
WyriHaximus 2434152
GHES 3.1
WyriHaximus 2333e9a
Drop double \ in some namespaces
WyriHaximus a2d23ed
Add "official" webhooks
WyriHaximus bbfa1f0
Applied code style rules
WyriHaximus 2f6ce40
Update QA config
WyriHaximus 4de94b6
Better object detection
WyriHaximus 18efccd
Added nested schema objects
WyriHaximus ec9e725
Several improvements
WyriHaximus e930c5e
No nullables
WyriHaximus ee08ad3
Correctly set no default value for non-array objects
WyriHaximus 4b1632a
Fixed certain annotations and dropped GHE as a test
WyriHaximus 08ab22d
Fixes! And dropped code style for now because it seem to have some we…
WyriHaximus de9805e
Keeping it slim for now
WyriHaximus f267946
Handle null values better
WyriHaximus 429fbb1
Better webhooks support
WyriHaximus fba8b3e
Keeping it slim for now
WyriHaximus 3539ea9
Webhook Interface
WyriHaximus 1486257
Ensure we have the webhook interface as return types for from WebHook…
WyriHaximus 7e01de2
updated dependencies
WyriHaximus d50cfb6
Limited allOf support
WyriHaximus e5d0760
Temporary new CS rules applied until the fixes stop breaking the code
WyriHaximus f01aca7
Some fixes
WyriHaximus f1414c7
Testing something
WyriHaximus e55ee42
Nope
WyriHaximus d574f3e
Debug
WyriHaximus bdb5d82
Trying something else
WyriHaximus 4e089d1
Another thing
WyriHaximus 565756e
Undid debug changes
WyriHaximus 0dc825e
Fix schema references
WyriHaximus 0bd8bc5
Testing something
WyriHaximus d68b87e
Nullable
WyriHaximus c440f03
More improvements!
WyriHaximus 25499e9
Merge remote-tracking branch 'origin/openapi-based-client-proof-of-co…
WyriHaximus f161e69
Phew
WyriHaximus 56b24dd
Improvements!
WyriHaximus ead61d3
Support nullable flag
WyriHaximus 258c31a
Make merged nullable for now by hand due to schema inaccuracy
WyriHaximus 0f991df
Make mergeable_state nullable for now by hand due to schame inacuracy
WyriHaximus 7c7b907
Updated generated code
WyriHaximus 7cb11e7
TEst
WyriHaximus cbd9fd4
test
WyriHaximus e5d61fa
Node code
WyriHaximus 9943d57
Test
WyriHaximus 6483228
Test
WyriHaximus 74fb551
Test
WyriHaximus 327ff34
Ugh
WyriHaximus 0ae4ff2
Oops
WyriHaximus 27af82c
Grrr
WyriHaximus 89a859f
Improved webhook handling
WyriHaximus d9ce079
Added missing single use webhooks
WyriHaximus cb586ea
Unlock PHP 8
WyriHaximus a0f652f
Update dependencies
WyriHaximus 3aa1741
New WebHooks schema from cebe/openapi
WyriHaximus 50a4696
Abd composer.json changes
WyriHaximus 81acb34
MVP support for oneOf schema's
WyriHaximus 60b206e
Translate number to int
WyriHaximus 0f2934b
WebHooks have names again :tada: !
WyriHaximus 43ac5de
Ship new client wiring update
WyriHaximus da6c01f
Removed trailing ? from URL's without a query
WyriHaximus e8455ea
Update to new webvsocket including OpenAPI spec
WyriHaximus 0682150
Update to latest generated client bringing all schemas and making req…
WyriHaximus eb292aa
More predictable naming
WyriHaximus 56cd733
Drop CHE and CHAE and in time put them in their own packages
WyriHaximus cd49a14
Added nested unknown schemas
WyriHaximus 3f3c394
Better nullable types
WyriHaximus d05bed8
Better naming conventions
WyriHaximus 358343c
Make the browser required
WyriHaximus 54030ef
Add authentication
WyriHaximus fb03405
Better naming for all classes
WyriHaximus 3a4d5dd
Several upgrades
WyriHaximus 2a35781
Handle empry response bodies a little bit better
WyriHaximus fc29f2f
Reserved keywords fix
WyriHaximus 588c6d2
Fix webhook key issues
WyriHaximus ccd87dd
Use eventsauce/object-hydrator for object hydration
WyriHaximus bd9d138
Hydrate WebHooks
WyriHaximus fb7bf78
Small fixes
WyriHaximus 6aee035
Add ClientIntface
WyriHaximus 6829fe2
Fibers
WyriHaximus 8d0b426
PHPStan understands these return conditionals
WyriHaximus 479aa3c
Hydrator templates
WyriHaximus 5929af2
Hydrator rename so it's easier to used externally
WyriHaximus ddfd693
Hydrator template fixes
WyriHaximus 93352c3
Re-fixed nested schemas
WyriHaximus bf29b8b
Correct constructor types
WyriHaximus abd4b48
Add example values to schema
WyriHaximus b1f9b51
Next gen generated client
WyriHaximus ca00ff0
Getting there :D!
WyriHaximus 23cff8d
Contracts
WyriHaximus d1dc962
Getting there
WyriHaximus 9451e3e
Hydrator shizzle
WyriHaximus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Several improvements
- Loading branch information
commit ec9e725c56a3e478c1cfc9fc1f63ff7fac4f10cf
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace ApiClients\Client\Github\OpenAPI\ApiGitHubCom; | ||
|
||
use ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Operation\Meta\Root; | ||
|
||
final class Path | ||
{ | ||
function get(): Root | ||
{ | ||
return new Root(); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.