{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/validators/repair.validator.ts",
          "name": "fieldDefects",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-repair-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/repair.validator.ts",
            "label": "core/validators/repair.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/repair.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-repair-validator-ts"
          }
        },
        {
          "file": "core/validators/repair.validator.ts",
          "name": "shapeDefects",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-repair-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/repair.validator.ts",
            "label": "core/validators/repair.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/repair.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-repair-validator-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/validators/ontology.validator.ts",
          "name": "partsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-ontology-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/ontology.validator.ts",
            "label": "core/validators/ontology.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/ontology.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-ontology-validator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "repairDefectsOf",
      "signature": "export const repairDefectsOf = function repairDefectsOf("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/validation.strings.ts",
          "name": "repairWrongKind",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-validation-strings-ts",
            "json": "https://banes-lab.com/json/source/context/configuration/strings/validation.strings.ts",
            "label": "configuration/strings/validation.strings.ts",
            "markdown": "https://banes-lab.com/source/context/configuration/strings/validation.strings.ts.md",
            "ref": "anatomy:file-context-configuration-strings-validation-strings-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/validators/repair.validator.ts",
          "name": "repairDefectsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-repair-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/repair.validator.ts",
            "label": "core/validators/repair.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/repair.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-repair-validator-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "fieldDefects",
      "signature": "const fieldDefects = function fieldDefects("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/validators/ontology.validator.ts",
          "name": "partsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-ontology-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/ontology.validator.ts",
            "label": "core/validators/ontology.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/ontology.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-ontology-validator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "repairKindLookup",
      "signature": "export const repairKindLookup = function repairKindLookup(faces: Pick<Faces, \"arch\" | \"lex\">): KindLookup {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/validators/repair.validator.ts",
          "name": "repairDefectsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-repair-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/repair.validator.ts",
            "label": "core/validators/repair.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/repair.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-repair-validator-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "shapeDefects",
      "signature": "const shapeDefects = function shapeDefects(principle: Principle): RepairDefect[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "REF_SEPARATOR",
      "signature": "const REF_SEPARATOR = \":\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "FORMED_BY",
      "signature": "const FORMED_BY = \"formed_by\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "VIOLATED_BY",
      "signature": "const VIOLATED_BY = \"violated_by\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "type_alias_declaration",
      "line": 18,
      "name": "KindLookup",
      "signature": "type KindLookup = (ref: string) => string | null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "at",
      "signature": "const at = ref.indexOf(REF_SEPARATOR);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "collection",
      "signature": "const collection = ref.slice(0, at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "id",
      "signature": "const id = ref.slice(at + 1);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "admitted",
      "signature": "const admitted = REPAIR_RANGES[field];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "kind",
      "signature": "const kind = kindOf(target);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "ref",
      "signature": "const ref = `${COLLECTIONS.architecture}${REF_SEPARATOR}${principle.id}`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "negative",
      "signature": "const negative = principle.type === NEGATIVE_KIND;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "formed",
      "signature": "const formed = principle.formed_by !== undefined;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "violated",
      "signature": "const violated = (principle.violated_by ?? []).length > 0;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-repair-validator-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "repair.validator.ts",
  "path": "core/validators/repair.validator.ts",
  "ref": "anatomy:file-context-core-validators-repair-validator-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-validators",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-validators.md",
          "ref": "chapter:/anatomy/context#folder-context-core-validators"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-validation-strings-ts",
          "json": "https://banes-lab.com/json/source/context/configuration/strings/validation.strings.ts",
          "label": "configuration/strings/validation.strings.ts",
          "markdown": "https://banes-lab.com/source/context/configuration/strings/validation.strings.ts.md",
          "ref": "anatomy:file-context-configuration-strings-validation-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-ontology-validator-ts",
          "json": "https://banes-lab.com/json/source/context/core/validators/ontology.validator.ts",
          "label": "core/validators/ontology.validator.ts",
          "markdown": "https://banes-lab.com/source/context/core/validators/ontology.validator.ts.md",
          "ref": "anatomy:file-context-core-validators-ontology-validator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-configuration-strings.md",
          "ref": "chapter:/anatomy/context#folder-context-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-validators",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-validators.md",
          "ref": "chapter:/anatomy/context#folder-context-core-validators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "validator",
    "subject": "repair",
    "variant": null
  },
  "stats": {
    "bytes": 2774,
    "callable": 4,
    "definitions": 17,
    "edges": 3,
    "exported": 5,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 2,
      "leaf": 2,
      "isolated": 13
    },
    "lines": {
      "blank": 6,
      "code": 62,
      "total": 68
    }
  },
  "summary": "62 lines of code and 17 definitions.",
  "text": "https://banes-lab.com/source/context/core/validators/repair.validator.ts.txt",
  "tree": "context",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-syntax-validator-ts",
      "json": "https://banes-lab.com/json/source/context/core/validators/syntax.validator.ts",
      "label": "core/validators/syntax.validator.ts",
      "markdown": "https://banes-lab.com/source/context/core/validators/syntax.validator.ts.md",
      "ref": "anatomy:file-context-core-validators-syntax-validator-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-record-validator-ts",
      "json": "https://banes-lab.com/json/source/context/core/validators/record.validator.ts",
      "label": "core/validators/record.validator.ts",
      "markdown": "https://banes-lab.com/source/context/core/validators/record.validator.ts.md",
      "ref": "anatomy:file-context-core-validators-record-validator-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/context/core/validators",
    "label": "core/validators",
    "markdown": "https://banes-lab.com/api/source/context/core/validators.md",
    "ref": "api:source/context/core/validators"
  }
}
