Skip to content

Commit 9a6cca1

Browse files
committed
Fix to contain only valid tags in gen_swagger
1 parent 8abb7c6 commit 9a6cca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

goagen/gen_swagger/swagger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ func tagsFromDefinition(mdata dslengine.MetadataDefinition) (tags []*Tag) {
453453
if len(chunks) != 3 {
454454
continue
455455
}
456-
if chunks[0] != "swagger" && chunks[1] != "tag" {
456+
if chunks[0] != "swagger" || chunks[1] != "tag" {
457457
continue
458458
}
459459

0 commit comments

Comments
 (0)