Skip to content

Commit

Permalink
feat(api): generate interface even if no apis
Browse files Browse the repository at this point in the history
  • Loading branch information
Just-maple committed Nov 8, 2023
1 parent d115c89 commit 43cbffa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/plugins/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ func (Api) generateApi(filename string, typeMap map[*zcore.AnnotatedDecl]zcore.F

api.Handlers = append(api.Handlers, handler)
}

interfaces = append(interfaces, api)
}

if len(interfaces) == 0 {
Expand Down

0 comments on commit 43cbffa

Please sign in to comment.