invalid-nesting
System > Service > Component is broken, by nesting or in:.
Severity: error · Since: v1.0.0
What check reports
Section titled “What check reports”For the failing example below, archidocs check prints:
shop/services.yaml:5:7 error invalid-nesting Component "cart-api" can't sit inside System "checkout"; a Component goes inside a ServiceEvery View shows the Model at a level: Systems at C1, Services at C2, Components at C3. That depends on the nesting System > Service > Component: a Component directly inside a System has no Service to be drawn in.
Failing example
Section titled “Failing example”shop/services.yaml:
systems: checkout: name: Checkout components: cart-api: name: Cart APIMove the Element under a parent of the right kind (a Service under a System, a Component under a Service), or point in: at one.
shop/services.yaml:
systems: checkout: name: Checkout services: cart: name: Cart components: cart-api: name: Cart APIRelated rules
Section titled “Related rules”external-with-components: An External System or Service declares Components.unknown-element: A reference names no Element: into,via,in, a Deployment’sservice, or a Saved View’s selectors,expand,collapseor Lens.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.