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 /

title-too-long

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/exactly-30.md
---
id: exactly-30
type: thing
title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
---
nodes/multibyte.md
---
id: multibyte
type: thing
title: éééééééééééééééééééééééééééééé
---
nodes/no-title.md
---
id: no-title
type: thing
---
nodes/over-by-one.md
---
id: over-by-one
type: thing
title: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
---
nodes/sentence.md
---
id: sentence
type: thing
title: A client can book a free slot with a credit
---
nodes/this-is-a-very-long-id-that-goes-past-thirty-characters.md
---
id: this-is-a-very-long-id-that-goes-past-thirty-characters
type: thing
---

Expected output

0 ghosts · 0 load errors · 6 nodes · 0 results

expected.json
{
 "ghosts": [],
 "load_errors": [],
 "nodes": [
  {
   "body": "",
   "fields": {},
   "id": "exactly-30",
   "links": [],
   "parent": null,
   "plane": null,
   "title": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
   "type": "thing"
  },
  {
   "body": "",
   "fields": {},
   "id": "multibyte",
   "links": [],
   "parent": null,
   "plane": null,
   "title": "éééééééééééééééééééééééééééééé",
   "type": "thing"
  },
  {
   "body": "",
   "fields": {},
   "id": "no-title",
   "links": [],
   "parent": null,
   "plane": null,
   "title": "no-title",
   "type": "thing"
  },
  {
   "body": "",
   "fields": {},
   "id": "over-by-one",
   "links": [],
   "parent": null,
   "plane": null,
   "title": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
   "type": "thing"
  },
  {
   "body": "",
   "fields": {},
   "id": "sentence",
   "links": [],
   "parent": null,
   "plane": null,
   "title": "A client can book a free slot with a credit",
   "type": "thing"
  },
  {
   "body": "",
   "fields": {},
   "id": "this-is-a-very-long-id-that-goes-past-thirty-characters",
   "links": [],
   "parent": null,
   "plane": null,
   "title": "this-is-a-very-long-id-that-goes-past-thirty-characters",
   "type": "thing"
  }
 ],
 "results": [],
 "structure": {
  "errors": [],
  "warnings": [
   {
    "kind": "title_too_long",
    "node": "over-by-one",
    "ref": "31"
   },
   {
    "kind": "title_too_long",
    "node": "sentence",
    "ref": "43"
   }
  ]
 }
}