From 06fdeab7a5d851fe6afdf815076bb9aefa4e3e1a Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 17 Jan 2023 22:22:45 +0100 Subject: [PATCH] chore: copy usages --- util/templates/template_types.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/templates/template_types.go b/util/templates/template_types.go index fcc096e5f..381f47529 100644 --- a/util/templates/template_types.go +++ b/util/templates/template_types.go @@ -222,6 +222,10 @@ func (p *Param) OverwriteProperties(withParam Param) { // always overwrite if defined p.Description.Update(withParam.Description, true) + if len(p.Usages) == 0 { + p.Usages = withParam.Usages + } + if withParam.ValueType != "" { p.ValueType = withParam.ValueType }