{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/h2o-ai/main/json-schema/h2o-ai-contributions-response-schema.json",
  "title": "ContributionsResponse",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/h2o-ai-model-api-openapi.yml#/components/schemas/ContributionsResponse",
  "required": [
    "features",
    "contributionGroups"
  ],
  "type": "object",
  "properties": {
    "features": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "An array holding the names of fields in the order of appearance in the rows of the  `contributions` property."
    },
    "contributionGroups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContributionGroup"
      },
      "description": "An array of rows consisting of the shapley contributions output corresponding to an output group."
    }
  },
  "$defs": {
    "ContributionGroup": {
      "title": "ContributionGroup",
      "required": [
        "contributions"
      ],
      "type": "object",
      "properties": {
        "output_group": {
          "type": "string",
          "description": "Name of the output group. It will be populated only for multinomial models. Shapley values are not supported for third party models yet, hence this field will not be populated."
        },
        "contributions": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": "n array of rows consisting of the shapley contributions output corresponding to columns in the fields"
        }
      }
    }
  }
}