{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/security-scorecard/json-schema/security-scorecard-get-portfolio-companies-schema.json",
  "title": "GetPortfolioCompanies",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/security-scorecard-portfolios-api-openapi.yml#/components/schemas/GetPortfolioCompanies",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "uuid": {
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
            "description": "Identifier",
            "type": "string"
          },
          "domain": {
            "type": "string",
            "description": "primary domain of the company"
          },
          "grade": {
            "type": "string",
            "description": "a security scorecard grade (A to F), or '?' if it's calculating.",
            "enum": [
              "A",
              "B",
              "C",
              "D",
              "F",
              "?"
            ]
          },
          "grade_url": {
            "type": "string",
            "description": "url to an image depicting the grade"
          },
          "score": {
            "type": "integer",
            "description": "security score from 0 to 100"
          },
          "industry": {
            "type": "string",
            "description": "industry (unique identifier). 'unknown' if this wasn't yet determined."
          },
          "size": {
            "type": "string",
            "description": "a company described based on number of employees",
            "enum": [
              "unknown",
              "size_1_to_10",
              "size_11_to_50",
              "size_51_to_200",
              "size_201_to_500",
              "size_501_to_1000",
              "size_1001_to_5000",
              "size_5001_to_10000",
              "size_more_than_10000"
            ]
          },
          "last30days_score_change": {
            "type": "number",
            "description": "delta score change in the last 30 days"
          },
          "added_date": {
            "format": "date-time",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}:\\d{2}\\.{0,1}[0-9]*Z$",
            "description": "created date"
          },
          "products": {
            "type": "array",
            "description": "The list of products",
            "items": {}
          },
          "products_count": {
            "type": "number",
            "description": "The number of products"
          },
          "business_impact": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "total": {
      "description": "The total number of records matching the given query",
      "type": "integer"
    }
  },
  "required": [
    "entries",
    "total"
  ]
}