{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://incentives.agiscorecard.com/input.schema.json",
  "title": "Incentive Lab input structure",
  "description": "Structural contract. The engine additionally validates ranges, dates, amounts, uniqueness and cross-field constraints; passing this schema is not a complete validation.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "currency",
    "customerRevenue",
    "tokenSubsidy",
    "computeCost",
    "reviewCost",
    "otherCost",
    "budget",
    "capPercent",
    "contributors"
  ],
  "properties": {
    "currency": {
      "type": "string"
    },
    "customerRevenue": {
      "type": "string"
    },
    "tokenSubsidy": {
      "type": "string"
    },
    "computeCost": {
      "type": "string"
    },
    "reviewCost": {
      "type": "string"
    },
    "otherCost": {
      "type": "string"
    },
    "budget": {
      "type": "string"
    },
    "capPercent": {
      "type": "number"
    },
    "contributors": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "acceptedTasks",
          "quality",
          "independent"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "acceptedTasks": {
            "type": "number"
          },
          "quality": {
            "type": "number"
          },
          "independent": {
            "type": "boolean"
          }
        }
      }
    }
  }
}
