aep-dev / api-linter

A linter for APIs defined in protocol buffers.
Apache License 2.0
0 stars 1 forks source link

non-resource message flagged as a resource, requiring annotation #92

Closed toumorokoshi closed 2 days ago

toumorokoshi commented 1 month ago

I have a proto message I do not intend to be a resource, but the resource-annotation rule (https://beta.aep.dev/tooling/linter/rules/0004/) is being flagged.

Example:

// An API service.
message Service {
  // The name of the API service.
  string name = 1;

  // The resources that the API service exposes.
  repeated Resource resources = 2;

  // These are additional objects (list of properties) that may be referenced from another property.
  repeated Object objects = 3;
}