generate errors only for generated files

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-06-11 20:45:09 +03:00
parent f22d8ed055
commit 55fa1ee403
8 changed files with 171 additions and 45 deletions

View File

@@ -62,7 +62,7 @@ func protofilesAdd(plugin *protogen.Plugin) {
}
// openapiv3Generate creates a new generator for a protoc plugin invocation.
func (g *Generator) openapiv3Generate(component string, plugin *protogen.Plugin) error {
func (g *Generator) openapiv3Generate(plugin *protogen.Plugin) error {
og := &openapiv3Generator{
circularDepth: 2,
plugin: plugin,