{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/veracode/main/json-schema/veracode-application-schema.json",
  "title": "Application",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/veracode-applications-api-openapi.yml#/components/schemas/Application",
  "type": "object",
  "properties": {
    "guid": {
      "type": "string",
      "format": "uuid",
      "description": "Application unique identifier"
    },
    "profile": {
      "$ref": "#/$defs/ApplicationProfile"
    },
    "scans": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ScanSummary"
      }
    },
    "last_completed_scan_date": {
      "type": "string",
      "format": "date-time"
    },
    "created": {
      "type": "string",
      "format": "date-time"
    },
    "modified": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "ApplicationProfile": {
      "type": "object",
      "required": [
        "profile"
      ],
      "properties": {
        "profile": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Application name"
            },
            "description": {
              "type": "string",
              "description": "Application description"
            },
            "business_criticality": {
              "type": "string",
              "enum": [
                "VERY_HIGH",
                "HIGH",
                "MEDIUM",
                "LOW",
                "VERY_LOW"
              ],
              "description": "Business criticality level"
            },
            "policy": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Policy name to apply"
                }
              }
            },
            "tags": {
              "type": "string",
              "description": "Comma-separated application tags"
            },
            "business_unit": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "ScanSummary": {
      "type": "object",
      "properties": {
        "scan_type": {
          "type": "string",
          "enum": [
            "STATIC",
            "DYNAMIC",
            "MANUAL",
            "SCA"
          ]
        },
        "status": {
          "type": "string"
        },
        "date": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}