{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ecreociscripts.blob.core.windows.net/ci-scripts/dependency-updates.schema.json",
  "title": "Ecreo dependency update configuration",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "nuget": { "$ref": "#/$defs/ecosystem" },
    "npm": { "$ref": "#/$defs/ecosystem" },
    "cdnjs": { "$ref": "#/$defs/ecosystem" }
  },
  "$defs": {
    "ecosystem": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "includePaths": { "type": "array", "items": { "type": "string", "minLength": 1 } },
        "excludePaths": { "type": "array", "items": { "type": "string", "minLength": 1 } },
        "packages": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": false,
            "required": ["allowedUpdates"],
            "properties": {
              "allowedUpdates": { "enum": ["minor", "patch", "none"] }
            }
          }
        }
      }
    }
  }
}
