wrong-kind
An id resolves to a kind the field doesn’t accept, such as a Deployment’s service naming a Component or System, or a Relationship’s via naming something other than a Service.
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:14:16 error wrong-kind A Deployment's `service` must name a Service, but "shop:cart" is a ComponentSome fields take one kind only. Only a Service is deployed, because Systems and Components run as part of their Services, and only a Service can be the broker an async Relationship runs through.
Failing example
Section titled “Failing example”shop/services.yaml:
services: web: name: Web checkout: name: Checkout components: cart: name: Carttargets: eks-prod: name: EKS prod kind: clusterdeployments: - { service: cart, environment: prod, target: eks-prod }Point the field at an id of the kind it accepts: a Deployment’s service and a Relationship’s via each name a Service.
shop/services.yaml:
services: web: name: Web checkout: name: Checkout components: cart: name: Carttargets: eks-prod: name: EKS prod kind: clusterdeployments: - { service: web, environment: prod, target: eks-prod }Related rules
Section titled “Related rules”unknown-element: A reference names no Element: into,via,in, a Deployment’sservice, or a Saved View’s selectors,expand,collapseor Lens.via-not-broker:vianames a Service that isn’ttype: broker.unknown-target: A Deployment, or a Saved Deployment View’stargets, names no Deployment Target.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.