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-duplicate-id

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/sub/x.md
---
id: x
type: t
title: first
---
nodes/x.md
---
id: x
type: t
title: second
---

Expected output

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

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