-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not generate xerror when no enum found (#704)
- Loading branch information
Showing
10 changed files
with
209 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
syntax = "proto3"; | ||
|
||
package helloworld.v1; | ||
|
||
import "error/v1/error.proto"; | ||
|
||
option go_package = "github.com/douyu/jupiter/proto/helloworld/v1;helloworldv1"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "HelloWorldProtoV1"; | ||
option java_package = "com.douyu.helloworld.v1"; | ||
|
||
// Error codes for the helloworld.v1 package. | ||
enum Error { | ||
// ERROR_UNSPECIFIED is the invalid code. | ||
ERROR_UNSPECIFIED = 0; | ||
// ERROR_NAME_INVALID is the error code for invalid name. | ||
ERROR_NAME_INVALID = 1000 [(error.v1.msg) = "name is invalid"]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "helloworld/v1/error.proto", | ||
"version": "version not set" | ||
}, | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"paths": {}, | ||
"definitions": {} | ||
} |
4 changes: 2 additions & 2 deletions
4
proto/helloworld/v1/helloworld_xerror.pb.go → proto/helloworld/v1/error_xerror.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.