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 /

missing-parent

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: thing
parent: ghost
---

Expected output

0 ghosts · 0 load errors · 1 nodes · 0 results

expected.json
{
 "ghosts": [],
 "load_errors": [],
 "nodes": [
  {
   "body": "",
   "fields": {},
   "id": "a",
   "links": [],
   "parent": "ghost",
   "plane": null,
   "title": "a",
   "type": "thing"
  }
 ],
 "results": [],
 "structure": {
  "errors": [
   {
    "kind": "missing_parent",
    "node": "a",
    "ref": "ghost"
   }
  ],
  "warnings": []
 }
}