From 7fb1ed8be640a8e6c3c39f69c87cb7eebfab5f86 Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Tue, 17 Dec 2024 14:17:13 +0100 Subject: [PATCH] fix: Typo in assignAnnotation --- bundle/internal/schema/annotations.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundle/internal/schema/annotations.go b/bundle/internal/schema/annotations.go index 7b3f61bf6..c0eefdcc6 100644 --- a/bundle/internal/schema/annotations.go +++ b/bundle/internal/schema/annotations.go @@ -87,7 +87,7 @@ func (d *annotationHandler) addAnnotations(typ reflect.Type, s jsonschema.Schema rootTypeAnnotation, ok := annotations[RootTypeKey] if ok { - assingAnnotation(&s, rootTypeAnnotation) + assignAnnotation(&s, rootTypeAnnotation) } for k, v := range s.Properties { @@ -105,7 +105,7 @@ func (d *annotationHandler) addAnnotations(typ reflect.Type, s jsonschema.Schema } emptyAnnotations[k] = item } - assingAnnotation(v, item) + assignAnnotation(v, item) } return s } @@ -141,7 +141,7 @@ func getPath(typ reflect.Type) string { return typ.PkgPath() + "." + typ.Name() } -func assingAnnotation(s *jsonschema.Schema, a annotation) { +func assignAnnotation(s *jsonschema.Schema, a annotation) { if a.Description != Placeholder { s.Description = a.Description }