Skip to content

Commit

Permalink
Generate bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
hedhyw committed Mar 13, 2022
1 parent bffbab6 commit 319ba96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-openapiv2/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _run_proto_gen_openapi(

if omit_enum_default_value:
args.add("--openapiv2_opt", "omit_enum_default_value=true")

if output_format:
args.add("--openapiv2_opt", "output_format=%s" % output_format)

Expand Down
7 changes: 7 additions & 0 deletions protoc-gen-openapiv2/internal/genopenapi/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go_library(
name = "genopenapi",
srcs = [
"doc.go",
"format.go",
"generator.go",
"helpers.go",
"helpers_go111_old.go",
Expand All @@ -23,6 +24,7 @@ go_library(
"@com_github_golang_protobuf//descriptor:go_default_library_gen",
"@go_googleapis//google/api:annotations_go_proto",
"@go_googleapis//google/rpc:status_go_proto",
"@in_gopkg_yaml_v2//:yaml_v2",
"@io_bazel_rules_go//proto/wkt:any_go_proto",
"@org_golang_google_protobuf//encoding/protojson",
"@org_golang_google_protobuf//proto",
Expand All @@ -37,8 +39,11 @@ go_test(
size = "small",
srcs = [
"cycle_test.go",
"format_test.go",
"generator_test.go",
"naming_test.go",
"template_test.go",
"types_test.go",
],
embed = [":genopenapi"],
deps = [
Expand All @@ -49,7 +54,9 @@ go_test(
"//runtime",
"@com_github_google_go_cmp//cmp",
"@go_googleapis//google/api:annotations_go_proto",
"@in_gopkg_yaml_v2//:yaml_v2",
"@io_bazel_rules_go//proto/wkt:field_mask_go_proto",
"@io_k8s_sigs_yaml//:yaml",
"@org_golang_google_protobuf//proto",
"@org_golang_google_protobuf//reflect/protodesc",
"@org_golang_google_protobuf//types/descriptorpb",
Expand Down

0 comments on commit 319ba96

Please sign in to comment.