Skip to content

Commit 33e995f

Browse files
feat: Add aep.api.resource annotation for resources
Similar to google.api.resource, this commit introduces a new proto annotation for AEP resources. This allows for the extension of new metadata as needed. The annotation includes the following fields: - plural - singular - type - patterns - parent
1 parent f23981e commit 33e995f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

proto/aep-api/aep/api/resource.proto

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ package aep.api;
1919
import "google/protobuf/descriptor.proto";
2020

2121
option go_package = "github.com/aep-dev/aep-go/api;api";
22+
option cc_enable_arenas = true;
23+
option java_multiple_files = true;
24+
option java_outer_classname = "ResourceProto";
25+
option java_package = "dev.aep.api";
2226

2327
extend google.protobuf.MessageOptions {
2428
// A descriptor for a resource type.
25-
ResourceDescriptor resource = 1059;
29+
ResourceDescriptor resource = 1264;
2630
}
2731

2832
// A simple descriptor of a resource type.
@@ -50,5 +54,5 @@ message ResourceDescriptor {
5054
string singular = 4;
5155

5256
// The list of parent resource types.
53-
repeated string parents = 5;
57+
repeated string parent = 5;
5458
}

0 commit comments

Comments
 (0)