{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/analyzers/document.analyzer.ts",
          "name": "spineFindings",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-analyzers-document-analyzer-ts",
            "json": "https://banes-lab.com/json/source/docs/core/analyzers/document.analyzer.ts",
            "label": "core/analyzers/document.analyzer.ts",
            "markdown": "https://banes-lab.com/source/docs/core/analyzers/document.analyzer.ts.md",
            "ref": "anatomy:file-docs-core-analyzers-document-analyzer-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "validateSpine",
      "signature": "export const validateSpine = function validateSpine("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/document.strings.ts",
          "name": "missingFrontmatterField",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-configuration-strings-document-strings-ts",
            "json": "https://banes-lab.com/json/source/docs/configuration/strings/document.strings.ts",
            "label": "configuration/strings/document.strings.ts",
            "markdown": "https://banes-lab.com/source/docs/configuration/strings/document.strings.ts.md",
            "ref": "anatomy:file-docs-configuration-strings-document-strings-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "missingFields",
      "signature": "const missingFields = function missingFields("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "TITLE_PREFIX",
      "signature": "const TITLE_PREFIX = \"# \";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "SETEXT_CHAR",
      "signature": "const SETEXT_CHAR = \"=\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "isSetextUnderline",
      "signature": "const isSetextUnderline = function isSetextUnderline(line: string): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "titleDefect",
      "signature": "const titleDefect = function titleDefect(source: string, bodyStart: number): SpineDefect | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "lines",
      "signature": "const lines = splitLines(source);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "at",
      "signature": "let at = bodyStart;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "first",
      "signature": "const first = lines[at] ?? \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "setext",
      "signature": "const setext = first.trim().length > 0 && isSetextUnderline((lines[at + 1] ?? \"\").trim());"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "{ requireFrontmatter = true, requireTitle = true }",
      "signature": "const { requireFrontmatter = true, requireTitle = true } = options;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "frontmatter",
      "signature": "const frontmatter = parseFrontmatter(source);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "fieldDefects",
      "signature": "const fieldDefects = frontmatter.present ? missingFields(frontmatter.fields, requiredKeys) : [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "title",
      "signature": "const title = requireTitle ? titleDefect(source, frontmatter.bodyStart) : null;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-core-validators-document-validator-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "document.validator.ts",
  "path": "core/validators/document.validator.ts",
  "ref": "anatomy:file-docs-core-validators-document-validator-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-validators",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-validators.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-validators"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-configuration-strings-document-strings-ts",
          "json": "https://banes-lab.com/json/source/docs/configuration/strings/document.strings.ts",
          "label": "configuration/strings/document.strings.ts",
          "markdown": "https://banes-lab.com/source/docs/configuration/strings/document.strings.ts.md",
          "ref": "anatomy:file-docs-configuration-strings-document-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-analyzers-document-analyzer-ts",
          "json": "https://banes-lab.com/json/source/docs/core/analyzers/document.analyzer.ts",
          "label": "core/analyzers/document.analyzer.ts",
          "markdown": "https://banes-lab.com/source/docs/core/analyzers/document.analyzer.ts.md",
          "ref": "anatomy:file-docs-core-analyzers-document-analyzer-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-configuration-strings.md",
          "ref": "chapter:/anatomy/docs#folder-docs-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-analyzers",
          "label": "core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-analyzers.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-analyzers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "validator",
    "subject": "document",
    "variant": null
  },
  "stats": {
    "bytes": 2119,
    "callable": 4,
    "definitions": 14,
    "edges": 1,
    "exported": 5,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 12
    },
    "lines": {
      "blank": 5,
      "code": 48,
      "total": 53
    }
  },
  "summary": "48 lines of code and 14 definitions.",
  "text": "https://banes-lab.com/source/docs/core/validators/document.validator.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-validators-figure-validator-ts",
      "json": "https://banes-lab.com/json/source/docs/core/validators/figure.validator.ts",
      "label": "core/validators/figure.validator.ts",
      "markdown": "https://banes-lab.com/source/docs/core/validators/figure.validator.ts.md",
      "ref": "anatomy:file-docs-core-validators-figure-validator-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-validators-diagram-validator-ts",
      "json": "https://banes-lab.com/json/source/docs/core/validators/diagram.validator.ts",
      "label": "core/validators/diagram.validator.ts",
      "markdown": "https://banes-lab.com/source/docs/core/validators/diagram.validator.ts.md",
      "ref": "anatomy:file-docs-core-validators-diagram-validator-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/docs/core/validators",
    "label": "core/validators",
    "markdown": "https://banes-lab.com/api/source/docs/core/validators.md",
    "ref": "api:source/docs/core/validators"
  }
}
