How to emit option
#4082
-
Hey 👋 // name/backstage/service_options.proto file
syntax = "proto3";
package name.backstage;
import "google/protobuf/descriptor.proto";
option go_package = "github.com/name/repo/proto/gen/go/name/backstage";
option java_package = "com.name.backstage";
extend google.protobuf.ServiceOptions {
// Used to fill the spec.owner field in a backstage file
optional string owner = 51001;
// Used to fill the system field in a backstage file
optional string system = 51002;
}
// somewhere in proto files
import "name/backstage/service_options.proto";
service DemoService {
option (name.backstage.owner) = "team/demo-team";
rpc GetData(GetDataRequest) returns (GetDataResponse) {
option (google.api.http) = {
get: "/v1/api-name/{param}/data"
};
}
} Using using google http annotations is our strict requirement and I can't find a way to do it with typespec. |
Beta Was this translation helpful? Give feedback.
Answered by
w01fgang
Aug 6, 2024
Replies: 1 comment
-
The answer is this feature request #4090 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
w01fgang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The answer is this feature request #4090