{
  "$id": "https://schemas.sand.binaryedge.io/minion/modules/sharepoint",
  "title": "SharePoint Module Output Body",
  "type": "object",
  "properties": {
    "evidence": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "redirects": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "version": {
      "$ref": "#/$defs/version"
    },
    "disposition": {
      "$comment": "on-premise or cloud",
      "type": "string",
      "enum": [
        "on-premise",
        "cloud"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "version": {
      "type": "object",
      "properties": {
        "build_name": {
          "type": "string"
        },
        "build_version": {
          "type": "string"
        },
        "release_date": {
          "$comment": "Should be blank or YYYY-MM-DD.",
          "type": "string",
          "pattern": "^|[0-9]{4}-[0-9]{2}-[0-9]{2}$"
        }
      },
      "required": [
        "build_name",
        "build_version"
      ],
      "additionalProperties": false
    }
  }
}
