{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fortify/main/json-schema/fortify-project-version-list-response-schema.json",
  "title": "ProjectVersionListResponse",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fortify-project-versions-api-openapi.yml#/components/schemas/ProjectVersionListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProjectVersion"
      }
    },
    "count": {
      "type": "integer",
      "format": "int32"
    }
  },
  "$defs": {
    "Project": {
      "type": "object",
      "description": "Represents a top-level project in SSC",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64",
          "description": "Unique identifier"
        },
        "name": {
          "type": "string",
          "description": "Project name"
        },
        "description": {
          "type": "string",
          "description": "Project description"
        },
        "creationDate": {
          "type": "string",
          "format": "date-time",
          "description": "Date when the project was created"
        },
        "issueTemplateId": {
          "type": "string",
          "description": "Issue template identifier"
        }
      }
    },
    "ProjectVersion": {
      "type": "object",
      "description": "Represents an application version within a project",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64",
          "description": "Unique identifier"
        },
        "name": {
          "type": "string",
          "description": "Version name"
        },
        "description": {
          "type": "string",
          "description": "Version description"
        },
        "active": {
          "type": "boolean",
          "description": "Whether the version is active"
        },
        "committed": {
          "type": "boolean",
          "description": "Whether the version is committed"
        },
        "project": {
          "$ref": "#/$defs/Project"
        },
        "createdBy": {
          "type": "string",
          "description": "User who created the version"
        },
        "creationDate": {
          "type": "string",
          "format": "date-time",
          "description": "Creation date"
        },
        "issueTemplateId": {
          "type": "string",
          "description": "Issue template identifier"
        },
        "currentState": {
          "type": "object",
          "properties": {
            "committed": {
              "type": "boolean"
            },
            "analysisResultsExist": {
              "type": "boolean"
            },
            "hasCustomIssues": {
              "type": "boolean"
            },
            "auditEnabled": {
              "type": "boolean"
            }
          }
        }
      }
    }
  }
}