Private beta, by invitation. It may change without warning. While the beta lasts, some paid features are free. See pricing

trumlyspec GitHub
Try trumly

Conformance cases /

undeclared-plane

Tests one part of the structure checks.

Our implementation passes this case when its check --json output for the input below equals the expected output.

Input

nodes/a.md
---
id: a
type: t
plane: nope
---
nodes/b.md
---
id: b
type: t
plane: p
---
nodes/p.md
---
id: p
type: plane
fields:
  order: 1
---

Expected output

0 ghosts · 0 load errors · 3 nodes · 0 results

expected.json
{
 "ghosts": [],
 "load_errors": [],
 "nodes": [
  {
   "body": "",
   "fields": {},
   "id": "a",
   "links": [],
   "parent": null,
   "plane": "nope",
   "title": "a",
   "type": "t"
  },
  {
   "body": "",
   "fields": {},
   "id": "b",
   "links": [],
   "parent": null,
   "plane": "p",
   "title": "b",
   "type": "t"
  },
  {
   "body": "",
   "fields": {
    "order": 1
   },
   "id": "p",
   "links": [],
   "parent": null,
   "plane": null,
   "title": "p",
   "type": "plane"
  }
 ],
 "results": [],
 "structure": {
  "errors": [],
  "warnings": [
   {
    "kind": "undeclared_plane",
    "node": "a",
    "ref": "nope"
   }
  ]
 }
}