You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add deprecated annotations on shorthand functions for deprecated operations (#384)
### Motivation
If an operation is marked as deprecated in the OpenAPI document then the
generated protocol requirement is annotated as deprecated. However, the
shorthand overload for this function, in the protocol extension, was
missing this annotation.
### Modifications
Add deprecated annotation to the generated function in the protocol
extension for deprecated API operations.
### Result
If an operation is marked as deprecated in the OpenAPI document then
both variants of the generated function (the protocol requirement _and_
the protocol extension) are annotated as deprecated.
### Test Plan
Updated the snippet test to include a path with one deprecated operation
and one non-deprecated operation.
### Related Issues
- Fixes#367.
0 commit comments