From acf14cc9f5b41e78761224a03f980f0458eade66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D1=83=D1=81=D0=B5=D0=B2=20=D0=98=D0=BB=D1=8C=D1=8F?= Date: Thu, 20 Jan 2022 10:20:37 +0300 Subject: [PATCH] updated test by parsing struct commit (#708) --- parser_test.go | 1 + testdata/struct_comment/web/handler.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/parser_test.go b/parser_test.go index 1506acb19..5282f8e88 100644 --- a/parser_test.go +++ b/parser_test.go @@ -1800,6 +1800,7 @@ func TestParseStructComment(t *testing.T) { }, "definitions": { "web.APIError": { + "description": "API error with information about it", "type": "object", "properties": { "createdAt": { diff --git a/testdata/struct_comment/web/handler.go b/testdata/struct_comment/web/handler.go index 49674dae3..9ca0de6a2 100644 --- a/testdata/struct_comment/web/handler.go +++ b/testdata/struct_comment/web/handler.go @@ -15,6 +15,9 @@ type Post struct { } `json:"data"` } +// APIError +// @Description API error +// @Description with information about it type APIError struct { // Error an Api error Error string // Error this is Line comment