...

Text file src/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options/annotations.proto

Documentation: github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options

     1syntax = "proto3";
     2
     3package grpc.gateway.protoc_gen_openapiv2.options;
     4
     5import "google/protobuf/descriptor.proto";
     6import "protoc-gen-openapiv2/options/openapiv2.proto";
     7
     8option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options";
     9
    10extend google.protobuf.FileOptions {
    11  // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
    12  //
    13  // All IDs are the same, as assigned. It is okay that they are the same, as they extend
    14  // different descriptor messages.
    15  Swagger openapiv2_swagger = 1042;
    16}
    17extend google.protobuf.MethodOptions {
    18  // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
    19  //
    20  // All IDs are the same, as assigned. It is okay that they are the same, as they extend
    21  // different descriptor messages.
    22  Operation openapiv2_operation = 1042;
    23}
    24extend google.protobuf.MessageOptions {
    25  // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
    26  //
    27  // All IDs are the same, as assigned. It is okay that they are the same, as they extend
    28  // different descriptor messages.
    29  Schema openapiv2_schema = 1042;
    30}
    31extend google.protobuf.ServiceOptions {
    32  // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
    33  //
    34  // All IDs are the same, as assigned. It is okay that they are the same, as they extend
    35  // different descriptor messages.
    36  Tag openapiv2_tag = 1042;
    37}
    38extend google.protobuf.FieldOptions {
    39  // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
    40  //
    41  // All IDs are the same, as assigned. It is okay that they are the same, as they extend
    42  // different descriptor messages.
    43  JSONSchema openapiv2_field = 1042;
    44}

View as plain text