Skip to content

Commit 58ae531

Browse files
committed
fixup! fix: deprecate **??**
1 parent c390cb3 commit 58ae531

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

pkg/codegen/templates/strict/strict-fiber-interface.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
{{if (and $hasHeaders (not $isRef)) -}}
3333
type {{$opid}}{{$statusCode}}ResponseHeaders struct {
3434
{{range .Headers -}}
35-
{{.GoName}} {{.GoTypeDef}}
35+
{{with .DeprecationComment}}{{.}}
36+
{{end -}}{{.GoName}} {{.GoTypeDef}}
3637
{{end -}}
3738
}
3839
{{end}}

pkg/codegen/templates/strict/strict-iris-interface.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
{{if (and $hasHeaders (not $isRef)) -}}
3333
type {{$opid}}{{$statusCode}}ResponseHeaders struct {
3434
{{range .Headers -}}
35-
{{.GoName}} {{.GoTypeDef}}
35+
{{with .DeprecationComment}}{{.}}
36+
{{end -}}{{.GoName}} {{.GoTypeDef}}
3637
{{end -}}
3738
}
3839
{{end}}

0 commit comments

Comments
 (0)