{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/nlu-json/latest.json",
  "title": "JSON schema for NLU (npm-link-up) library.",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/oresoftware/npm-link-up/master/assets/nlu.schema.json",
    "sourceSha256": "2f20c4df1a00881a893783e1b88eda2a97c01c9bdc839da4d3dee3103cdad57f",
    "fileMatch": [
      "nlu.json",
      ".nlu.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string"
    },
    "alwaysReinstall": {
      "type": "boolean"
    },
    "comments": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "deps": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "ignore": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "linkToItself": {
      "type": "boolean"
    },
    "linkable": {
      "enum": [
        true
      ],
      "type": "boolean"
    },
    "list": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "localSettings": {
      "type": "object",
      "additionalProperties": {}
    },
    "npm-link-up": {
      "type": "boolean"
    },
    "packages": {
      "$ref": "#/$defs/PackagesMap"
    },
    "searchRoots": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "$defs": {
    "PackagesMap": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "additionalProperties": false,
  "oneOf": [
    {
      "required": [
        "list"
      ]
    },
    {
      "required": [
        "packages"
      ]
    },
    {
      "required": [
        "deps"
      ]
    }
  ]
}
