-
Notifications
You must be signed in to change notification settings - Fork 311
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
feat: Add the apiVersion protected property to the generated resources when applicable #4966
base: main
Are you sure you want to change the base?
Conversation
🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use -- conventional-commit-lint bot |
31487e1
to
0fd4c10
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing with this PR, we need to either manually update the goldens to include an API with apiversion
(recommended), or we need to add a different specific test for it.
Correct me if I'm wrong, but we are using the |
0fd4c10
to
abb86b8
Compare
abb86b8
to
0a84bc3
Compare
No, we use the JSON here: https://github.com/googleapis/google-api-php-client-services/tree/main/generator/tests/testdata/golden_discovery |
I added a file to And I am using it in the test here: |
942b95e
to
7f6a423
Compare
|
||
# Support for the new API versioning on the discovery document | ||
# the design states that all the methods should have the same version | ||
# hence why we take it the first time and set it once |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the comment, I think this is clear
+@parthea for visibility. Would love you to take a glance at this to make sure it looks good! |
Add the protected
apiVersion
property to the generated resource classes when the discovery document contains theapiVersion
field inside the resource fields.