{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ko-io/json-schema/ko-io-gov-feed-action-schema.json",
  "title": "GovFeedAction",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ko-io-openapi.yaml#/components/schemas/GovFeedAction",
  "type": "object",
  "required": [
    "transaction_id",
    "award_id",
    "piid",
    "modification_number",
    "action_date",
    "obligated_amount",
    "award_type",
    "agency",
    "recipient",
    "naics",
    "psc",
    "place_of_performance",
    "description",
    "link_tier",
    "provisional",
    "source_url",
    "ticker",
    "cik",
    "company_name"
  ],
  "properties": {
    "transaction_id": {
      "type": "string"
    },
    "award_id": {
      "type": "string"
    },
    "piid": {
      "type": "string"
    },
    "modification_number": {
      "type": "string"
    },
    "action_date": {
      "type": "string"
    },
    "obligated_amount": {
      "type": "string",
      "pattern": "^-?\\d+\\.\\d{2}$",
      "description": "Exact USD decimal with two fractional digits."
    },
    "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"
        }
      }
    },
    "naics": {
      "type": "object",
      "required": [
        "code",
        "description"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "psc": {
      "type": "object",
      "required": [
        "code",
        "description"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "place_of_performance": {
      "type": "object",
      "required": [
        "country",
        "state",
        "city"
      ],
      "properties": {
        "country": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "city": {
          "type": "string"
        }
      }
    },
    "description": {
      "type": "string"
    },
    "link_tier": {
      "type": "string"
    },
    "provisional": {
      "type": "boolean"
    },
    "source_url": {
      "type": "string"
    },
    "ticker": {
      "type": [
        "string",
        "null"
      ]
    },
    "cik": {
      "type": "string"
    },
    "company_name": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}