Skip to content

Commit

Permalink
Fix/openapiv3 go package (#344)
Browse files Browse the repository at this point in the history
fix openapiv3 proto go_package to "github.com/google/gnostic/openapiv3;openapi_v3"
  • Loading branch information
ppaanngggg authored Apr 24, 2022
1 parent c1c54ff commit 56da86e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
13 changes: 7 additions & 6 deletions openapiv3/OpenAPIv3.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openapiv3/OpenAPIv3.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ option java_package = "org.openapi_v3";
option objc_class_prefix = "OAS";

// The Go package name.
option go_package = "./openapiv3;openapi_v3";
option go_package = "github.com/google/gnostic/openapiv3;openapi_v3";

message AdditionalPropertiesItem {
oneof oneof {
Expand Down
4 changes: 4 additions & 0 deletions openapiv3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ for OpenAPI.

The schema-generator directory contains support code which generates
openapi-3.1.json from the OpenAPI 3.1 specification document (Markdown).

### How to rebuild

`protoc -I=. -I=third_party --go_out=. --go_opt=paths=source_relative openapiv3/*.proto`
11 changes: 6 additions & 5 deletions openapiv3/annotations.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openapiv3/annotations.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ option java_package = "org.openapi_v3";
option objc_class_prefix = "OAS";

// The Go package name.
option go_package = "./openapiv3;openapi_v3";
option go_package = "github.com/google/gnostic/openapiv3;openapi_v3";

extend google.protobuf.FileOptions {
Document document = 1143;
Expand Down

0 comments on commit 56da86e

Please sign in to comment.