Skip to content

Commit

Permalink
Assign IDs for proto options extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivucica committed Nov 1, 2017
1 parent 97ee19b commit ceb4c4e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 38 deletions.
59 changes: 29 additions & 30 deletions protoc-gen-swagger/options/annotations.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions protoc-gen-swagger/options/annotations.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ import "protoc-gen-swagger/options/openapiv2.proto";
import "google/protobuf/descriptor.proto";

extend google.protobuf.FileOptions {
// TODO(ivucica): ask protobuf-global-extension-registry@google.com to assign ID
Swagger openapiv2_swagger = 123456788;
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
Swagger openapiv2_swagger = 1042;
}
extend google.protobuf.MethodOptions {
// TODO(ivucica): ask protobuf-global-extension-registry@google.com to assign ID
Operation openapiv2_operation = 123456789;
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
Operation openapiv2_operation = 1042;
}
extend google.protobuf.MessageOptions {
// TODO(ivucica): ask protobuf-global-extension-registry@google.com to assign ID
Schema openapiv2_schema = 123456790;
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
Schema openapiv2_schema = 1042;
}
extend google.protobuf.ServiceOptions {
// TODO(ivucica): ask protobuf-global-extension-registry@google.com to assign ID
Tag openapiv2_tag = 123456791;
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
Tag openapiv2_tag = 1042;
}

0 comments on commit ceb4c4e

Please sign in to comment.