{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudbees/main/json-schema/cloudbees-api-v4-create-run-response-schema.json",
  "title": "api.v4.CreateRunResponse",
  "description": "Response message for CreateRun.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudbees-runs-api-openapi.yml#/components/schemas/api.v4.CreateRunResponse",
  "type": "object",
  "properties": {
    "runId": {
      "type": "string",
      "description": "Run id of the newly created run from external source"
    },
    "warnings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/api.v4.ValidationWarning"
      },
      "description": "Optional validation warnings (request succeeded but had validation issues)"
    }
  },
  "$defs": {
    "api.v4.ValidationWarning": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Error code identifying the type of validation issue"
        },
        "message": {
          "type": "string",
          "description": "Human-readable error message"
        },
        "field": {
          "type": "string",
          "description": "Field name that caused the warning"
        }
      },
      "description": "Validation warning for non-blocking validation issues"
    }
  }
}