8
8
"strings"
9
9
"unicode"
10
10
11
- openapiAnnotations "github.com/Layr-Labs/protocol-apis-annotations /protos/annotations"
11
+ openapiAnnotations "github.com/Layr-Labs/protobuf-libs /protos/eigenlayer/lib /annotations"
12
12
"google.golang.org/genproto/googleapis/api/annotations"
13
13
"google.golang.org/protobuf/compiler/protogen"
14
14
"google.golang.org/protobuf/proto"
@@ -219,10 +219,10 @@ func main() {
219
219
// Add tag if not seen before
220
220
if ! seenTags [moduleTag ] {
221
221
seenTags [moduleTag ] = true
222
- allPathsSpec .Tags = append (allPathsSpec .Tags , Tag {
223
- Name : moduleTag ,
224
- Description : fmt .Sprintf ("Operations from package %s" , moduleTag ),
225
- })
222
+ // allPathsSpec.Tags = append(allPathsSpec.Tags, Tag{
223
+ // Name: moduleTag,
224
+ // Description: fmt.Sprintf("Operations from package %s", moduleTag),
225
+ // })
226
226
}
227
227
228
228
// Process all services in the file
@@ -231,10 +231,10 @@ func main() {
231
231
serviceTag := fmt .Sprintf ("%s/%s" , moduleTag , strings .ToLower (service .GoName ))
232
232
if ! seenTags [serviceTag ] {
233
233
seenTags [serviceTag ] = true
234
- allPathsSpec .Tags = append (allPathsSpec .Tags , Tag {
235
- Name : serviceTag ,
236
- Description : fmt .Sprintf ("Operations for service %s" , service .GoName ),
237
- })
234
+ // allPathsSpec.Tags = append(allPathsSpec.Tags, Tag{
235
+ // Name: serviceTag,
236
+ // Description: fmt.Sprintf("Operations for service %s", service.GoName),
237
+ // })
238
238
}
239
239
240
240
for _ , method := range service .Methods {
@@ -261,7 +261,7 @@ func main() {
261
261
Summary : method .GoName ,
262
262
Description : extractLeadingComments (method ),
263
263
OperationID : fmt .Sprintf ("%s_%s" , service .GoName , method .GoName ),
264
- Tags : []string {moduleTag , serviceTag },
264
+ Tags : []string {moduleTag }, // []string{moduleTag , serviceTag},
265
265
Responses : map [string ]Response {
266
266
"200" : {
267
267
Description : "Successful response" ,
@@ -281,7 +281,7 @@ func main() {
281
281
if isPublicVal != nil {
282
282
isPublic = isPublicVal .(bool )
283
283
if isPublic {
284
- operation .Tags = append (operation .Tags , "public_rpc" )
284
+ // operation.Tags = append(operation.Tags, "public_rpc")
285
285
}
286
286
}
287
287
}
@@ -342,10 +342,10 @@ func main() {
342
342
}
343
343
if ! seenPublicTags [serviceTag ] {
344
344
seenPublicTags [serviceTag ] = true
345
- publicPathsSpec .Tags = append (publicPathsSpec .Tags , Tag {
346
- Name : serviceTag ,
347
- Description : fmt .Sprintf ("Operations for service %s" , service .GoName ),
348
- })
345
+ // publicPathsSpec.Tags = append(publicPathsSpec.Tags, Tag{
346
+ // Name: serviceTag,
347
+ // Description: fmt.Sprintf("Operations for service %s", service.GoName),
348
+ // })
349
349
}
350
350
351
351
// Add operation to publicPathsSpec
0 commit comments