-
Notifications
You must be signed in to change notification settings - Fork 850
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
Updated PHPDocs #1005
Updated PHPDocs #1005
Conversation
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.
LGTM
Hey @remi-stripe @ctrudeau-stripe I'm guessing some changes are in preparation for the next API version? The reason I'm asking is: Today I've updated some of our dependencies to their latest version (including this package) and our CI has failed with some errors. The most nostable was the removal of Since this change was done one day after the latest version, I'm guessing this one is for an upcoming API version? |
@keichinger It's a bit orthogonal. We just undocumented |
@remi-stripe Thank you, I wasn't really paying attention to whether or not the property has been deprecated. Maybe that's somewhat a problem of this lib. Due to the fact the properties are only PhpDoc comments + magic functions, there's really no way to use actual properties/getters/setters with a This could actually help developers seeing and addressing these kind of deprecations earlier, so the transition phase gets even smoother. Is this a topic you're interested in discussing? Should I open a dedicated issue to further discuss this or is this something you don't want or can't invest too much time into, since there is already great docs and awesome API versioning? |
Hi @keichinger, I think a dedicated issue is a good idea. Helping developers detect and move away from deprecated APIs smoothly is definitely something we are interested in, and I appreciate you bringing up the prior-art with how Symfony does it. We've considered moving away from PhpDoc-only properties and using class properties, although there are tradeoffs involved and we don't have plans to make that change in the short-term at least. Your idea of hard-coding a list of deprecations is interesting, although as a prerequisite for that there's some work we would have to do on our end to make sure that information makes it way into our code-generation infrastructure. It also sounds like a better changelog could have helped you have a better experinece, which is something to consider. |
Hey @richardm-stripe thank you for replying. I've gathered some of my thoughts and created #1012, where we can start discussing some of the problems I was encountering here. I'm super excited and curious about where this is heading! |
Codegen for openapi 2aeb1a7
r? @ctrudeau-stripe -stripe
cc @stripe/api-libraries