{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/main/json-schema/palo-alto-networks-rds-repo-info-2-schema.json",
  "title": "RdsRepoInfo_2",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-repositories-api-openapi.yml#/components/schemas/RdsRepoInfo_2",
  "properties": {
    "applications": {
      "items": {
        "$ref": "#/$defs/CasApplication"
      },
      "type": "array"
    },
    "exceedsCommitsLastSixMonths": {
      "type": "boolean"
    },
    "exceedsCommits": {
      "type": "boolean"
    },
    "lastReleaseTimestamp": {
      "type": "number",
      "format": "double"
    },
    "releasesCount": {
      "type": "number",
      "format": "double"
    },
    "lastTagTimestamp": {
      "type": "number",
      "format": "double"
    },
    "tagsCount": {
      "type": "number",
      "format": "double"
    },
    "lastVcsIssueTimestamp": {
      "type": "number",
      "format": "double"
    },
    "vcsIssuesCount": {
      "type": "number",
      "format": "double"
    },
    "pipelineCount": {
      "type": "number",
      "format": "double"
    },
    "isFork": {
      "type": "boolean"
    },
    "isPublic": {
      "type": "boolean"
    },
    "organizationId": {
      "type": "string"
    },
    "importanceScore": {
      "properties": {
        "repoScore": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "customUpdatedAt": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "customReporter": {
          "type": [
            "string",
            "null"
          ]
        },
        "customRepoScore": {
          "description": "User-defined repository score. Provide an integer from 1 (lowest importance) to 10 (highest importance) to indicate the relative importance of the repository as per your requirements. This value overrides the system-calculated importance score.",
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "customComment": {
          "description": "Comment explaining the assigned customRepositoryScore.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "repoScore",
        "customUpdatedAt",
        "customReporter",
        "customRepoScore",
        "customComment"
      ],
      "type": "object"
    },
    "metadata": {
      "properties": {
        "runtimeImagesMetadata": {
          "items": {
            "properties": {},
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "boolean"
                }
              ]
            },
            "type": "object"
          },
          "type": "array"
        },
        "scansMetadata": {
          "properties": {},
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "type": "object"
        }
      },
      "required": [
        "runtimeImagesMetadata",
        "scansMetadata"
      ],
      "type": "object"
    },
    "images": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "integrationId": {
      "type": "string"
    },
    "source": {
      "$ref": "#/$defs/SourceTypes"
    },
    "weeklyCommitOnPrs": {
      "items": {
        "$ref": "#/$defs/WeeklyCommitOnPrs"
      },
      "type": "array"
    },
    "issues": {
      "$ref": "#/$defs/ModuleIssues"
    },
    "contributors": {
      "items": {
        "$ref": "#/$defs/Contributor"
      },
      "type": "array"
    },
    "categorizedTechnologies": {
      "$ref": "#/$defs/Technologies"
    },
    "ciInstances": {
      "$ref": "#/$defs/CiInstancesHash"
    },
    "contributorsCount": {
      "type": "number",
      "format": "double"
    },
    "customerName": {
      "type": "string"
    },
    "workspaceName": {
      "type": "string"
    },
    "workspaceId": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "ciFiles": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "totalCommitsCount": {
      "type": "number",
      "format": "double"
    },
    "riskFactors": {
      "$ref": "#/$defs/RiskFactors"
    },
    "repositorySize": {
      "type": "number",
      "format": "double"
    },
    "lastCommitTimestamp": {
      "type": "number",
      "format": "double"
    },
    "lastUpdated": {
      "type": "string"
    },
    "provider": {
      "$ref": "#/$defs/RepositoryProvider"
    },
    "privacyLevel": {
      "$ref": "#/$defs/RepositoryPrivacyLabel"
    },
    "fullName": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "isArchived": {
      "type": "boolean"
    },
    "hasCoderOwner": {
      "type": "boolean"
    },
    "defaultBranch": {
      "type": "string"
    },
    "casId": {
      "type": "string"
    },
    "id": {
      "type": "string"
    }
  },
  "required": [
    "exceedsCommitsLastSixMonths",
    "exceedsCommits",
    "lastReleaseTimestamp",
    "releasesCount",
    "lastTagTimestamp",
    "tagsCount",
    "lastVcsIssueTimestamp",
    "vcsIssuesCount",
    "pipelineCount",
    "isFork",
    "isPublic",
    "organizationId",
    "importanceScore",
    "metadata",
    "images",
    "integrationId",
    "source",
    "customerName",
    "url",
    "provider",
    "fullName",
    "name",
    "isArchived",
    "defaultBranch",
    "casId",
    "id"
  ],
  "type": "object",
  "$defs": {
    "CIType": {
      "enum": [
        "githubActions",
        "circleci",
        "codebuild",
        "jenkins"
      ],
      "type": "string"
    },
    "CasApplication": {
      "properties": {
        "name": {
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "id"
      ],
      "type": "object"
    },
    "CiInstancesHash": {
      "additionalProperties": {
        "$ref": "#/$defs/ICiInstanceInfo"
      },
      "properties": {},
      "type": "object"
    },
    "Contributor": {
      "properties": {
        "contributionsCounts": {
          "description": "Number of contributions",
          "format": "double",
          "type": "number"
        },
        "id": {
          "type": "string"
        },
        "lastPush": {
          "format": "double",
          "type": "number"
        },
        "name": {
          "description": "Contributor name",
          "type": "string"
        },
        "permission": {
          "description": "Contributor permission",
          "type": "string"
        }
      },
      "required": [
        "contributionsCounts",
        "name",
        "id"
      ],
      "type": "object"
    },
    "ICiInstanceInfo": {
      "additionalProperties": false,
      "properties": {
        "ciType": {
          "$ref": "#/$defs/CIType",
          "description": "CI pipeline type"
        },
        "customerName": {
          "description": "Customer Prisma ID",
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "description": "CI pipeline name",
          "type": "string"
        },
        "pipelines": {
          "items": {
            "$ref": "#/$defs/PipelineInfo"
          },
          "type": "array"
        }
      },
      "required": [
        "ciType",
        "customerName",
        "id",
        "name",
        "pipelines"
      ],
      "type": "object"
    },
    "ModuleIssues": {
      "properties": {
        "CICD": {
          "allOf": [
            {
              "$ref": "#/$defs/SeverityIssues"
            },
            {
              "properties": {
                "TOTAL": {
                  "format": "double",
                  "type": "number"
                }
              },
              "required": [
                "TOTAL"
              ],
              "type": "object"
            }
          ]
        },
        "IAC": {
          "allOf": [
            {
              "$ref": "#/$defs/SeverityIssues"
            },
            {
              "properties": {
                "TOTAL": {
                  "format": "double",
                  "type": "number"
                }
              },
              "required": [
                "TOTAL"
              ],
              "type": "object"
            }
          ]
        },
        "SCA": {
          "allOf": [
            {
              "$ref": "#/$defs/SeverityIssues"
            },
            {
              "properties": {
                "TOTAL": {
                  "format": "double",
                  "type": "number"
                }
              },
              "required": [
                "TOTAL"
              ],
              "type": "object"
            }
          ]
        },
        "SECRETS": {
          "allOf": [
            {
              "$ref": "#/$defs/SeverityIssues"
            },
            {
              "properties": {
                "TOTAL": {
                  "format": "double",
                  "type": "number"
                }
              },
              "required": [
                "TOTAL"
              ],
              "type": "object"
            }
          ]
        }
      },
      "type": "object"
    },
    "PipelineInfo": {
      "properties": {
        "instance": {
          "type": "string"
        },
        "pipeline": {
          "type": "string"
        },
        "system": {
          "type": "string"
        }
      },
      "required": [
        "pipeline",
        "system",
        "instance"
      ],
      "type": "object"
    },
    "RepositoryPrivacyLabel": {
      "enum": [
        "public",
        "private",
        "internal"
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "RepositoryProvider": {
      "type": "string"
    },
    "RiskFactors": {
      "properties": {
        "isInternetExpose": {
          "type": "boolean"
        },
        "isRepositoryDeployed": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "SecurityModule": {
      "enum": [
        "IAC",
        "SCA",
        "SECRETS",
        "CICD"
      ],
      "type": "string"
    },
    "SeverityIssues": {
      "properties": {
        "CRITICAL": {
          "anyOf": [
            {
              "format": "double",
              "type": "number"
            },
            {
              "$ref": "#/$defs/SecurityModule"
            }
          ]
        },
        "HIGH": {
          "anyOf": [
            {
              "format": "double",
              "type": "number"
            },
            {
              "$ref": "#/$defs/SecurityModule"
            }
          ]
        },
        "INFO": {
          "anyOf": [
            {
              "format": "double",
              "type": "number"
            },
            {
              "$ref": "#/$defs/SecurityModule"
            }
          ]
        },
        "LOW": {
          "anyOf": [
            {
              "format": "double",
              "type": "number"
            },
            {
              "$ref": "#/$defs/SecurityModule"
            }
          ]
        },
        "MEDIUM": {
          "anyOf": [
            {
              "format": "double",
              "type": "number"
            },
            {
              "$ref": "#/$defs/SecurityModule"
            }
          ]
        }
      },
      "type": "object"
    },
    "SourceTypes": {
      "enum": [
        "admissionController",
        "AlibabaCloud",
        "AWS",
        "Azure",
        "AzureOnPrem",
        "AzureRepos",
        "Bitbucket",
        "bitbucketEnterprise",
        "circleci",
        "cli",
        "codebuild",
        "GCP",
        "Github",
        "githubActions",
        "githubEnterprise",
        "Gitlab",
        "gitlabEnterprise",
        "jenkins",
        "Kubernetes",
        "kubernetesWorkloads",
        "terraformCloud",
        "terraformEnterprise",
        "tfcRunTasks",
        "tfeRunTasks",
        "Transporter",
        "OnPrem"
      ],
      "type": "string"
    },
    "Technologies": {
      "properties": {
        "CICD": {
          "$ref": "#/$defs/Technology"
        },
        "Configuration": {
          "$ref": "#/$defs/Technology"
        },
        "Data": {
          "$ref": "#/$defs/Technology"
        },
        "Devops": {
          "$ref": "#/$defs/Technology"
        },
        "Documentation": {
          "$ref": "#/$defs/Technology"
        },
        "License": {
          "$ref": "#/$defs/Technology"
        },
        "Markup": {
          "$ref": "#/$defs/Technology"
        },
        "PackageManager": {
          "$ref": "#/$defs/Technology"
        },
        "Programming": {
          "$ref": "#/$defs/Technology"
        },
        "Prose": {
          "$ref": "#/$defs/Technology"
        },
        "Unknown": {
          "$ref": "#/$defs/Technology"
        }
      },
      "type": "object"
    },
    "Technology": {
      "additionalProperties": {
        "properties": {
          "detectedDate": {
            "format": "date-time",
            "type": "string"
          },
          "percentage": {
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "detectedDate"
        ],
        "type": "object"
      },
      "properties": {},
      "type": "object"
    },
    "WeeklyCommitOnPrs": {
      "properties": {
        "branchName": {
          "type": "string"
        },
        "currWeeklyCommits": {
          "format": "double",
          "type": "number"
        },
        "prevWeeklyCommits": {
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "prevWeeklyCommits",
        "currWeeklyCommits",
        "branchName"
      ],
      "type": "object"
    }
  }
}