-
Notifications
You must be signed in to change notification settings - Fork 25
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
Also fetching the github enterprise openAPI specs, and appending them #74
base: master
Are you sure you want to change the base?
Also fetching the github enterprise openAPI specs, and appending them #74
Conversation
… to the enpoint file
Thanks for the contribution, @DocEmmetBrown ! Would this be somewhat similar to using the example in the README about Github Enterprise? https://github.com/migueleliasweb/go-github-mock?tab=readme-ov-file#mocking-for-github-enterprise. I'm not sure if the endpoints are fundamentally different or the diff is only a prefix. |
Hey @migueleliasweb,
and a few others |
I was digging a bit checking the diff between the two openapi definitions for the normal and enterprise versions. They are very similar but the enterprise has some extra bits, which I think it makes sense. Could you generate the enterprise Cheers. |
If you prefer, we could add a prefix for enterprise calls, and have them in another file. In that case, we would have :
and
but they would ultimately call the exact same endpoint, so I'm wondering if it's adding a lot of value 🤔 Tell me what you'd like, and I'll come with a solution. |
Hey @migueleliasweb , |
ping @migueleliasweb ;) |
Hi @DocEmmetBrown , sorry for the delay. Life's been busy. So, I understand there are a bit of overlap between the two but I think it's a bit better o have the two being generated fully. Could you just, instead, create a new I'm happy to merge with that. Thanks for the contribution. Edit: With the new file and the |
I think that's correct. I will try that path, and update my PR. Thanks for your time. |
… with methods with a specific prefix.
Hey @migueleliasweb, I'm not 100% happy with it, but it works. I left the previous commit, so that you can iterate between both methods to see what you prefer. Tell me how you feel about it. Cheers |
I needed a way to mock some enterprise calls, so I added a new API endpoint URL.
In order to have consistent output, since both endpoint have a lot in common, I had to add a quick & dirty struct just there to "uniq" the entries.
I did not touch any of the code logic, as it worked perfectly out of the box.
Thanks for the hard work building this library, that is super helpful !