Skip to content

empty-view

A Saved View resolves to no nodes.

Severity: warning · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/services.yaml:15:5 warning empty-view Saved View "shop:front" resolves to no nodes

A Saved View that selects nothing draws an empty diagram, which answers no question. It usually means the selectors no longer match the Model.

shop/services.yaml:

services:
web:
name: Web
relationships:
- to: cart
cart:
name: Cart
components:
cart-api:
name: Cart API
search:
name: Search
views:
structural:
front:
title: Front
level: c2
include: [{ tag: storefront }]

Correct the selectors so they name Elements, or remove the View.

shop/services.yaml:

services:
web:
name: Web
tags: [storefront]
views:
structural:
front:
title: Front
level: c2
include: [{ tag: storefront }]
  • unresolved-path: A Saved View’s path selector, or path Lens, finds no path between its two Elements.
  • oversized-view: A View has more than 150 nodes, too many for a readable diagram. A Generated View is reported at its System or Service, or at workspace.yaml for the Landscapes; a Saved View at its id.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.