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 /

load-bad-field-types

Tests loading a project: how files are read and which load errors are reported.

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
parent: 5
---
nodes/b.md
---
id: b
type: t
links:
  - type: x
---
nodes/ok.md
---
id: ok
type: t
---

Expected output

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

expected.json
{
 "ghosts": [],
 "load_errors": [
  {
   "file": "a.md",
   "kind": "invalid_frontmatter"
  },
  {
   "file": "b.md",
   "kind": "invalid_frontmatter"
  }
 ],
 "nodes": [
  {
   "body": "",
   "fields": {},
   "id": "ok",
   "links": [],
   "parent": null,
   "plane": null,
   "title": "ok",
   "type": "t"
  }
 ],
 "results": [],
 "structure": {
  "errors": [],
  "warnings": []
 }
}