123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
- package(default_visibility = ["//protoc-gen-openapiv2:__subpackages__"])
- go_library(
- name = "genopenapi",
- srcs = [
- "doc.go",
- "format.go",
- "generator.go",
- "helpers.go",
- "helpers_go111_old.go",
- "naming.go",
- "template.go",
- "types.go",
- ],
- importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/internal/genopenapi",
- deps = [
- "//internal/casing",
- "//internal/descriptor",
- "//internal/generator",
- "//protoc-gen-openapiv2/options",
- "@in_gopkg_yaml_v3//:yaml_v3",
- "@org_golang_google_genproto_googleapis_api//annotations",
- "@org_golang_google_genproto_googleapis_api//visibility",
- "@org_golang_google_genproto_googleapis_rpc//status",
- "@org_golang_google_grpc//grpclog",
- "@org_golang_google_protobuf//encoding/protojson",
- "@org_golang_google_protobuf//proto",
- "@org_golang_google_protobuf//reflect/protodesc",
- "@org_golang_google_protobuf//types/descriptorpb",
- "@org_golang_google_protobuf//types/known/anypb",
- "@org_golang_google_protobuf//types/known/structpb",
- "@org_golang_google_protobuf//types/pluginpb",
- "@org_golang_x_text//cases",
- "@org_golang_x_text//language",
- ],
- )
- go_test(
- name = "genopenapi_test",
- size = "small",
- srcs = [
- "cycle_test.go",
- "format_test.go",
- "generator_test.go",
- "helpers_test.go",
- "naming_test.go",
- "template_fuzz_test.go",
- "template_test.go",
- "types_test.go",
- ],
- data = glob(["testdata/**"]),
- embed = [":genopenapi"],
- deps = [
- "//internal/descriptor",
- "//internal/descriptor/openapiconfig",
- "//internal/httprule",
- "//protoc-gen-openapiv2/options",
- "//runtime",
- "@com_github_google_go_cmp//cmp",
- "@in_gopkg_yaml_v3//:yaml_v3",
- "@org_golang_google_genproto_googleapis_api//annotations",
- "@org_golang_google_genproto_googleapis_api//visibility",
- "@org_golang_google_protobuf//encoding/protojson",
- "@org_golang_google_protobuf//encoding/prototext",
- "@org_golang_google_protobuf//proto",
- "@org_golang_google_protobuf//reflect/protodesc",
- "@org_golang_google_protobuf//reflect/protoreflect",
- "@org_golang_google_protobuf//reflect/protoregistry",
- "@org_golang_google_protobuf//types/descriptorpb",
- "@org_golang_google_protobuf//types/known/anypb",
- "@org_golang_google_protobuf//types/known/durationpb",
- "@org_golang_google_protobuf//types/known/emptypb",
- "@org_golang_google_protobuf//types/known/fieldmaskpb",
- "@org_golang_google_protobuf//types/known/structpb",
- "@org_golang_google_protobuf//types/known/timestamppb",
- "@org_golang_google_protobuf//types/known/wrapperspb",
- "@org_golang_google_protobuf//types/pluginpb",
- ],
- )
- alias(
- name = "go_default_library",
- actual = ":genopenapi",
- visibility = ["//protoc-gen-openapiv2:__subpackages__"],
- )
|