Skip to content

Commit 9936c10

Browse files
authored
fix(go): add some missing deprecations in compat layer (#243)
1 parent 9dc770b commit 9936c10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

languages/golang/compat-layer/templates/api.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ type {{classname}} interface {
2929
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{{#pathParams}}
3030
@param {{paramName}}{{#description}} {{{.}}}{{/description}}{{/pathParams}}
3131
@return {{#structPrefix}}{{&classname}}{{/structPrefix}}{{^structPrefix}}Api{{/structPrefix}}{{operationId}}Request
32+
33+
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
3234
*/
3335
{{{nickname}}}(ctx context.Context{{#pathParams}}, {{paramName}} {{{dataType}}}{{/pathParams}}) {{#structPrefix}}{{&classname}}{{/structPrefix}}{{^structPrefix}}Api{{/structPrefix}}{{operationId}}Request
3436
/*
@@ -56,6 +58,7 @@ type {{#structPrefix}}{{&classname}}{{/structPrefix}}{{^structPrefix}}Api{{/stru
5658
{{vendorExtensions.x-export-param-name}}({{paramName}} {{{dataType}}}) {{#structPrefix}}{{&classname}}{{/structPrefix}}{{^structPrefix}}Api{{/structPrefix}}{{operationId}}Request
5759
{{/isPathParam}}
5860
{{/allParams}}
61+
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
5962
Execute() ({{#returnType}}{{^isArray}}{{^returnTypeIsPrimitive}}{{^isResponseFile}}*{{/isResponseFile}}{{/returnTypeIsPrimitive}}{{/isArray}}{{{.}}}, {{/returnType}} error)
6063
}
6164

0 commit comments

Comments
 (0)