Resources must not form a resource reference cycle
This rule enforces that resources do not create reference cycles of mutable
references as mandated in AEP-121.
Details
This rule scans the fields of every resource and ensures that any references to
other resources do not create a mutable cycle between them.
Examples
Incorrect code for this rule:
Correct code for this rule:
Disabling
If you need to violate this rule, use a leading comment above the service.
Remember to also include an aep.dev/not-precedent comment explaining why.
If you need to violate this rule for an entire file, place the comment at the
top of the file.
Resource must support get
Resource must support get
This rule enforces that all resources support the Get operation as mandated in
AEP-121.
Details
This rule scans a service for Create, Update, and List methods for resources,
and ensures each one has a Get method.
Examples
Incorrect code for this rule:
Correct code for this rule:
Disabling
If you need to violate this rule, use a leading comment above the service.
Remember to also include an aep.dev/not-precedent comment explaining why.
If you need to violate this rule for an entire file, place the comment at the
top of the file.
Resource must support list
Resource must support list
This rule enforces that all, non-Singleton resources support the List operation
as mandated in AEP-121.
Details
This rule scans a service for Create, Update, and Get methods for resources
(that are not Singletons), and ensures each one has a List method.
Examples
Incorrect code for this rule:
Correct code for this rule:
Disabling
If you need to violate this rule, use a leading comment above the service.
Remember to also include an aep.dev/not-precedent comment explaining why.
If you need to violate this rule for an entire file, place the comment at the
top of the file.