From 2c9a7e36ada9e2defdb8e54c9bd3f45f6321d31c Mon Sep 17 00:00:00 2001 From: Koptelov Nikita Date: Tue, 10 Mar 2020 16:58:34 +0300 Subject: [PATCH] swagger: temporarily disabled grpc-gateway DefaultErrors Temporarily force-disabled errors definitions for generated Swagger defs until we figure out the best approach to set them up and customize them. Closes #81, refs #83 --- cmd/protoc-gen-goclay/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/protoc-gen-goclay/main.go b/cmd/protoc-gen-goclay/main.go index 1f86cf5..fae20ce 100644 --- a/cmd/protoc-gen-goclay/main.go +++ b/cmd/protoc-gen-goclay/main.go @@ -73,6 +73,7 @@ func main() { } reg.SetAllowDeleteBody(*allowDeleteBody) reg.SetPrefix(*importPrefix) + reg.SetDisableDefaultErrors(true) for k, v := range pkgMap { reg.AddPkgMap(k, v) }