Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | package grpc.gateway.protoc_gen_swagger.options; |
| 4 | |
| 5 | option go_package = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"; |
| 6 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 7 | import "google/protobuf/descriptor.proto"; |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 8 | import "protoc-gen-swagger/options/openapiv2.proto"; |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 9 | |
| 10 | extend 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 | } |
| 17 | extend 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 | } |
| 24 | extend 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 | } |
| 31 | extend 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 | } |
| 38 | extend 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 | } |