{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tradestarinsider-com/json-schema/tradestarinsider-com-award-envelope-schema.json",
  "title": "AwardEnvelope",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tradestarinsider-com-openapi.json#/components/schemas/AwardEnvelope",
  "type": "object",
  "required": [
    "api_version",
    "endpoint",
    "award_guarantee",
    "count",
    "awards"
  ],
  "properties": {
    "api_version": {
      "type": "string"
    },
    "endpoint": {
      "type": "string"
    },
    "award_guarantee": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "total_matched": {
      "type": "integer",
      "description": "Total rows matching the filter before limit/offset (Issue 2.6). count == len(this page)."
    },
    "params": {
      "type": "object",
      "additionalProperties": true
    },
    "awards": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Award"
      }
    }
  },
  "$defs": {
    "Award": {
      "type": "object",
      "description": "One USAspending.gov federal award. `award_url` is the Rule-2 source link.",
      "required": [
        "award_url"
      ],
      "properties": {
        "award_url": {
          "type": "string",
          "format": "uri",
          "description": "RULE 2 source link — usaspending.gov award page"
        }
      },
      "additionalProperties": true
    }
  }
}