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 /

values-yaml12

Tests how field values are read, such as dates, numbers and YAML 1.2 rules.

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
fields:
  switch: on
  answer: no
  mode: Yes
  perm: 0755
  hex: 0x1F
  sci: 1e3
  big: 9223372036854775808
  neg: -12
  t: True
  nul: ~
links:
  - type: x
    to: a
    fields: {on: go, off: stop}
---

Expected output

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

expected.json
{
 "ghosts": [],
 "load_errors": [],
 "nodes": [
  {
   "body": "",
   "fields": {
    "answer": "no",
    "big": 9.223372036854776e+18,
    "hex": 31,
    "mode": "Yes",
    "neg": -12,
    "nul": null,
    "perm": 755,
    "sci": 1000.0,
    "switch": "on",
    "t": true
   },
   "id": "a",
   "links": [
    {
     "fields": {
      "off": "stop",
      "on": "go"
     },
     "to": "a",
     "type": "x"
    }
   ],
   "parent": null,
   "plane": null,
   "title": "a",
   "type": "t"
  }
 ],
 "results": [],
 "structure": {
  "errors": [],
  "warnings": []
 }
}