From ea631f2f48b7724dd4eff6f55a3b8953dc3ad17e Mon Sep 17 00:00:00 2001 From: Cesar Cejudo Date: Wed, 21 Aug 2024 11:49:21 -0600 Subject: [PATCH] Log empty tags --- docparse/jsonschema.go | 1 + 1 file changed, 1 insertion(+) diff --git a/docparse/jsonschema.go b/docparse/jsonschema.go index 5819c3d..aff0799 100644 --- a/docparse/jsonschema.go +++ b/docparse/jsonschema.go @@ -66,6 +66,7 @@ func structToSchema(prog *Program, name, tagName string, ref Reference) (*Schema continue } if name == "" { + fmt.Fprintf(os.Stderr, "empty `%s` tag for %s. tags value: %s\n", tagName, schema.Title, p.KindField.Tag.Value) name = p.Name }