{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/broad-institute/json-schema/broad-institute-cost-response-schema.json",
  "title": "CostResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/broad-institute-cromiam-workflows-for-job-manager-api-openapi.yml#/components/schemas/CostResponse",
  "required": [
    "cost",
    "currency",
    "errors",
    "id",
    "status"
  ],
  "type": "object",
  "properties": {
    "cost": {
      "type": "number",
      "description": "The current estimated cost of the workflow"
    },
    "currency": {
      "type": "string",
      "description": "The currency that the cost is in, currently always USD"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Errors that were encountered while obtaining cost information, if any. If this list is nonempty the estimated cost should be regarded as incomplete."
    },
    "id": {
      "type": "string",
      "description": "The identifier of the workflow"
    },
    "status": {
      "type": "string",
      "description": "The status of the workflow"
    }
  }
}