-
Notifications
You must be signed in to change notification settings - Fork 4
feat(deprecation): Allow deprecating parameters of controller methods #219
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
Conversation
provokateurin
left a comment
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 fear this implementation is not compatible with #214 and I would really like to get that PR merged first and avoid rebasing it.
|
Please try a rebase, hopefully you don't need to change too much 🤞 |
2f26338 to
0a5e7b6
Compare
provokateurin
left a comment
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.
Deprecated parameters for GET methods don't seem to work correctly.
| if (str_contains($param->type->description, '@deprecated')) { | ||
| $param->type->deprecated = true; | ||
| } |
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 would suggest replacing @deprecated with Deprecated: in the description to make it a bit more readable like a normal sentence.
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.
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 only meant in the OpenAPI output, not in the phpdocs.
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.
Ah, in the parsed openapi.json
We can try that
0a5e7b6 to
4badf2a
Compare
Signed-off-by: Joas Schilling <[email protected]>
4badf2a to
aad84fd
Compare
Signed-off-by: Joas Schilling <[email protected]>



Fix #217