You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.7 KiB
45 lines
1.7 KiB
4 years ago
|
syntax = "proto3";
|
||
|
|
||
|
package grpc.gateway.protoc_gen_openapiv2.options;
|
||
|
|
||
|
option go_package = "github.com/longXboy/grpc-gateway/v2/protoc-gen-openapiv2/options";
|
||
|
|
||
|
import "google/protobuf/descriptor.proto";
|
||
|
import "protoc-gen-openapiv2/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;
|
||
|
}
|