{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://sake92.github.io/codeps/schemas/report.schema.json",
  "title": "MetricsReports",
  "description": "Codeps metrics report v4",
  "type": "object",
  "properties": {
    "schemaVersion": {
      "const": 4
    },
    "packages": {
      "$ref": "definitions.schema.json#/$defs/scopeReport"
    },
    "files": {
      "anyOf": [
        {
          "$ref": "definitions.schema.json#/$defs/scopeReport"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "schemaVersion",
    "packages"
  ],
  "dependentSchemas": {
    "packages": {
      "properties": {
        "packages": {
          "properties": {
            "scope": {
              "const": "packages"
            }
          }
        }
      }
    },
    "files": {
      "properties": {
        "files": {
          "properties": {
            "scope": {
              "const": "files"
            }
          }
        }
      }
    }
  }
}
