{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ko-io/json-schema/ko-io-gov-meta-schema.json",
  "title": "GovMeta",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ko-io-openapi.yaml#/components/schemas/GovMeta",
  "type": "object",
  "required": [
    "coverage_start",
    "provisional_from",
    "caveats",
    "data_through",
    "refreshed_at",
    "query_time_ms"
  ],
  "properties": {
    "coverage_start": {
      "type": "string"
    },
    "provisional_from": {
      "type": "string"
    },
    "caveats": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "attribution": {
      "type": "string"
    },
    "data_through": {
      "type": [
        "string",
        "null"
      ]
    },
    "refreshed_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "query_time_ms": {
      "type": "number"
    },
    "window_start": {
      "type": "string"
    },
    "window_end": {
      "type": "string"
    },
    "window_clamped": {
      "type": "boolean"
    },
    "date_basis": {
      "type": "string"
    },
    "period": {
      "type": [
        "string",
        "null"
      ]
    },
    "fiscal_year": {
      "type": [
        "number",
        "null"
      ]
    },
    "identity": {
      "type": "object",
      "required": [
        "ticker",
        "cik",
        "company_name",
        "issuer_tickers"
      ],
      "properties": {
        "ticker": {
          "type": "string"
        },
        "cik": {
          "type": "string"
        },
        "company_name": {
          "type": "string"
        },
        "issuer_tickers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "scope": {
      "type": "string",
      "enum": [
        "company",
        "award"
      ]
    },
    "award": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "award_id",
        "piid",
        "award_type",
        "agency",
        "recipient",
        "award_description",
        "latest_action_date",
        "attributed_actions",
        "attributed_net_obligated",
        "attributed_scope",
        "requires_plan",
        "source_url"
      ],
      "properties": {
        "award_id": {
          "type": "string"
        },
        "piid": {
          "type": "string"
        },
        "award_type": {
          "type": "string"
        },
        "agency": {
          "type": "object",
          "required": [
            "code",
            "name",
            "sub_code",
            "sub_name"
          ],
          "properties": {
            "code": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "sub_code": {
              "type": "string"
            },
            "sub_name": {
              "type": "string"
            }
          }
        },
        "recipient": {
          "type": "object",
          "required": [
            "name",
            "uei",
            "parent_name",
            "parent_uei"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "uei": {
              "type": "string"
            },
            "parent_name": {
              "type": "string"
            },
            "parent_uei": {
              "type": "string"
            }
          }
        },
        "award_description": {
          "type": "string"
        },
        "latest_action_date": {
          "type": "string"
        },
        "attributed_actions": {
          "type": [
            "number",
            "null"
          ]
        },
        "attributed_net_obligated": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^-?\\d+\\.\\d{2}$"
        },
        "attributed_scope": {
          "type": "string",
          "enum": [
            "issuer_attributed_since_fy2015"
          ]
        },
        "requires_plan": {
          "type": [
            "string",
            "null"
          ]
        },
        "source_url": {
          "type": "string"
        }
      }
    },
    "match_status": {
      "type": "string",
      "enum": [
        "has_actions",
        "none_in_window",
        "no_attributed_actions"
      ]
    },
    "total_count": {
      "type": "number"
    },
    "page": {
      "type": "number"
    },
    "per_page": {
      "type": "number"
    },
    "pagination": {
      "type": "object",
      "required": [
        "page",
        "per_page",
        "total_count",
        "total_pages"
      ],
      "properties": {
        "page": {
          "type": "number"
        },
        "per_page": {
          "type": "number"
        },
        "total_count": {
          "type": "number"
        },
        "total_pages": {
          "type": "number"
        }
      }
    },
    "universe": {
      "type": "string"
    },
    "facets": {
      "type": "object",
      "required": [
        "agencies"
      ],
      "properties": {
        "agencies": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "code",
              "name",
              "actions"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "actions": {
                "type": "number"
              }
            }
          }
        }
      }
    },
    "mapping_versions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "note": {
      "type": "string"
    },
    "softwall": {
      "type": "object",
      "additionalProperties": true
    }
  }
}