{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ko-io/json-schema/ko-io-gov-summary-schema.json",
  "title": "GovSummary",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ko-io-openapi.yaml#/components/schemas/GovSummary",
  "type": "object",
  "required": [
    "ticker",
    "cik",
    "company_name",
    "issuer_tickers",
    "totals",
    "monthly",
    "agencies",
    "link_tiers"
  ],
  "properties": {
    "ticker": {
      "type": "string"
    },
    "cik": {
      "type": "string"
    },
    "company_name": {
      "type": "string"
    },
    "issuer_tickers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "totals": {
      "type": "object",
      "required": [
        "gross_obligated",
        "deobligated",
        "net_obligated",
        "actions",
        "awards",
        "agencies"
      ],
      "properties": {
        "gross_obligated": {
          "type": "string",
          "pattern": "^-?\\d+\\.\\d{2}$",
          "description": "Exact USD decimal with two fractional digits."
        },
        "deobligated": {
          "type": "string",
          "pattern": "^-?\\d+\\.\\d{2}$",
          "description": "Exact USD decimal with two fractional digits."
        },
        "net_obligated": {
          "type": "string",
          "pattern": "^-?\\d+\\.\\d{2}$",
          "description": "Exact USD decimal with two fractional digits."
        },
        "actions": {
          "type": "number"
        },
        "awards": {
          "type": "number"
        },
        "agencies": {
          "type": "number"
        }
      }
    },
    "monthly": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "month",
          "gross_obligated",
          "deobligated",
          "net_obligated",
          "actions",
          "awards",
          "provisional",
          "window_clipped"
        ],
        "properties": {
          "month": {
            "type": "string"
          },
          "gross_obligated": {
            "type": "string",
            "pattern": "^-?\\d+\\.\\d{2}$",
            "description": "Exact USD decimal with two fractional digits."
          },
          "deobligated": {
            "type": "string",
            "pattern": "^-?\\d+\\.\\d{2}$",
            "description": "Exact USD decimal with two fractional digits."
          },
          "net_obligated": {
            "type": "string",
            "pattern": "^-?\\d+\\.\\d{2}$",
            "description": "Exact USD decimal with two fractional digits."
          },
          "actions": {
            "type": "number"
          },
          "awards": {
            "type": "number"
          },
          "provisional": {
            "type": "boolean"
          },
          "window_clipped": {
            "type": "boolean"
          }
        }
      }
    },
    "agencies": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "code",
          "name",
          "gross_obligated",
          "net_obligated",
          "actions",
          "gross_share"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "gross_obligated": {
            "type": "string",
            "pattern": "^-?\\d+\\.\\d{2}$",
            "description": "Exact USD decimal with two fractional digits."
          },
          "net_obligated": {
            "type": "string",
            "pattern": "^-?\\d+\\.\\d{2}$",
            "description": "Exact USD decimal with two fractional digits."
          },
          "actions": {
            "type": "number"
          },
          "gross_share": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      }
    },
    "link_tiers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "link_tier",
          "actions"
        ],
        "properties": {
          "link_tier": {
            "type": "string"
          },
          "actions": {
            "type": "number"
          }
        }
      }
    }
  }
}