From 57ee0213004df3ef8910036d8e89bedd0bc7b616 Mon Sep 17 00:00:00 2001 From: Ruben Hoenle Date: Wed, 4 Mar 2026 11:37:49 +0100 Subject: [PATCH] fix(go): add some missing deprecations in compat layer --- languages/golang/compat-layer/templates/api.mustache | 3 +++ 1 file changed, 3 insertions(+) diff --git a/languages/golang/compat-layer/templates/api.mustache b/languages/golang/compat-layer/templates/api.mustache index 711091f..e274098 100644 --- a/languages/golang/compat-layer/templates/api.mustache +++ b/languages/golang/compat-layer/templates/api.mustache @@ -29,6 +29,8 @@ type {{classname}} interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{{#pathParams}} @param {{paramName}}{{#description}} {{{.}}}{{/description}}{{/pathParams}} @return {{#structPrefix}}{{&classname}}{{/structPrefix}}{{^structPrefix}}Api{{/structPrefix}}{{operationId}}Request + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ {{{nickname}}}(ctx context.Context{{#pathParams}}, {{paramName}} {{{dataType}}}{{/pathParams}}) {{#structPrefix}}{{&classname}}{{/structPrefix}}{{^structPrefix}}Api{{/structPrefix}}{{operationId}}Request /* @@ -56,6 +58,7 @@ type {{#structPrefix}}{{&classname}}{{/structPrefix}}{{^structPrefix}}Api{{/stru {{vendorExtensions.x-export-param-name}}({{paramName}} {{{dataType}}}) {{#structPrefix}}{{&classname}}{{/structPrefix}}{{^structPrefix}}Api{{/structPrefix}}{{operationId}}Request {{/isPathParam}} {{/allParams}} + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() ({{#returnType}}{{^isArray}}{{^returnTypeIsPrimitive}}{{^isResponseFile}}*{{/isResponseFile}}{{/returnTypeIsPrimitive}}{{/isArray}}{{{.}}}, {{/returnType}} error) }