-
Notifications
You must be signed in to change notification settings - Fork 315
feat: Add relevant attribute descriptions where available #6295
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
base: main
Are you sure you want to change the base?
Conversation
677f715
to
775e5e1
Compare
…s (step 3) (googleapis#6295) Added deprecated props support. Tests are also adjusted.
My only concern with adding description will be the size of the whole repo, the descriptions are not short and given the number of sub packages in this repo, this will really become problematic as I can see it jumping from 80Mb to 140Mb easily with this change, could you try to generate everything and see how much space it all takes on disk? See: #595 |
Yeah, I know the discussion, but the Resources have the full description already, I think that problem needs to be solved anyway, no matter if we add this or not. |
@bshaffer can you please have a look at this? Really depend on it to develop our passbook lib further. Thank you! |
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.
This looks great! thanks for your contribution!
Hmm, since I made changes, I can't merge unless I get another approver. cc @Hectorhammett (or @razvanphp can make my changes and force-push to remove my commits) |
…s (step 3) (googleapis#6295) Added deprecated props support. Tests are also adjusted.
d50fe02
to
f6e03fe
Compare
Rebased on current main, fixed the tests and force pushed. Thank you for looking into this! |
There is one aspect to discuss before we merge this, how to handle this?
Before, we were using only doc-block for type-hint, now using native strict type hinting. Should I make those attributes nullable like before? It should be backwards compatible, or do you have another suggestion? |
* @deprecated | ||
*/ | ||
public $kind; | ||
public string $kind; |
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.
I don't think we want to add the typehints for these. This could lead to errorsbeing thrown such as
Typed property Foo::$bar must not be accessed before initialization
Where they wouldn't have been thrown previously
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.
@razvanphp @bshaffer I agree with this comment, everything lgtm except this new error being thrown. I would change this but then I would not be able to review thanks to the new merging rules.
Closes #4591
This is already really helpful for Walletobjects API, see the attached screenshot.
I'm still working on adding the Enums as class const, doing great progress.