* Setup buf to see and process protos correctly. This commit adds a proposed directory structure for protos. Included is a rough draft of the Ec2Catalog protos. * Setup buf to see and process protos correctly. This commit adds a proposed directory structure for protos, but leaves the existing oplog related protos alone. Included is a rough draft of the Ec2Catalog protos. * Update makefile and add script to generate the appropriate pb.go files. * Add comment explaining google.golang.org/protobuf vs github.com/golang/protobuf * Move all protos and generated files to under the internal directory. This also required updating the buf config to explicitly name the excluded linted proto files under oplog since previously /internal/ was listed as a root in buf. Future commit will move oplog proto files to be with the others. * Moved oplog related protos to under the proto directory and regenerated. * Update the oplog protos to be compliant with buf lint.
45 lines
1.7 KiB
Protocol Buffer
45 lines
1.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package grpc.gateway.protoc_gen_swagger.options;
|
|
|
|
option go_package = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options";
|
|
|
|
import "google/protobuf/descriptor.proto";
|
|
import "protoc-gen-swagger/options/openapiv2.proto";
|
|
|
|
extend google.protobuf.FileOptions {
|
|
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
|
|
//
|
|
// All IDs are the same, as assigned. It is okay that they are the same, as they extend
|
|
// different descriptor messages.
|
|
Swagger openapiv2_swagger = 1042;
|
|
}
|
|
extend google.protobuf.MethodOptions {
|
|
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
|
|
//
|
|
// All IDs are the same, as assigned. It is okay that they are the same, as they extend
|
|
// different descriptor messages.
|
|
Operation openapiv2_operation = 1042;
|
|
}
|
|
extend google.protobuf.MessageOptions {
|
|
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
|
|
//
|
|
// All IDs are the same, as assigned. It is okay that they are the same, as they extend
|
|
// different descriptor messages.
|
|
Schema openapiv2_schema = 1042;
|
|
}
|
|
extend google.protobuf.ServiceOptions {
|
|
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
|
|
//
|
|
// All IDs are the same, as assigned. It is okay that they are the same, as they extend
|
|
// different descriptor messages.
|
|
Tag openapiv2_tag = 1042;
|
|
}
|
|
extend google.protobuf.FieldOptions {
|
|
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
|
|
//
|
|
// All IDs are the same, as assigned. It is okay that they are the same, as they extend
|
|
// different descriptor messages.
|
|
JSONSchema openapiv2_field = 1042;
|
|
}
|