{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/power-bi/json-schema/power-bi-goal-values-schema.json",
  "title": "GoalValues",
  "description": "The OData response wrapper for a Power BI goal value collection",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/power-bi-goalvalues-preview-api-openapi.yml#/components/schemas/GoalValues",
  "properties": {
    "@odata.context": {
      "type": "string",
      "description": "OData context"
    },
    "value": {
      "type": "array",
      "description": "The goal value collection",
      "items": {
        "$ref": "#/$defs/GoalValue"
      }
    }
  },
  "$defs": {
    "GoalNote": {
      "description": "A Power BI goal value check-in note",
      "properties": {
        "id": {
          "description": "The goal value check-in note ID",
          "type": "string",
          "format": "uuid"
        },
        "valueTimestamp": {
          "description": "The UTC timestamp of the goal value check-in that this note belongs to. The time portion of the timestamp is zero.",
          "type": "string",
          "format": "date-time"
        },
        "goalId": {
          "description": "The goal ID",
          "type": "string",
          "format": "uuid"
        },
        "scorecardId": {
          "description": "The scorecard ID",
          "type": "string",
          "format": "uuid"
        },
        "lastModifiedTime": {
          "description": "The UTC time at last modification",
          "type": "string",
          "format": "date-time"
        },
        "content": {
          "description": "The content of this note in special format",
          "type": "string"
        },
        "createdTime": {
          "description": "The UTC time at creation",
          "type": "string",
          "format": "date-time"
        },
        "body": {
          "description": "The note text",
          "type": "string"
        }
      }
    },
    "GoalValue": {
      "description": "A Power BI goal value check-in",
      "properties": {
        "timestamp": {
          "description": "The UTC timestamp of the goal value check-in. The time portion of the timestamp is zero.",
          "type": "string",
          "format": "date-time"
        },
        "goalId": {
          "description": "The goal ID",
          "type": "string",
          "format": "uuid"
        },
        "scorecardId": {
          "description": "The scorecard ID",
          "type": "string",
          "format": "uuid"
        },
        "createdTime": {
          "description": "The UTC time at creation",
          "type": "string",
          "format": "date-time"
        },
        "lastModifiedTime": {
          "description": "The UTC time at last modification",
          "type": "string",
          "format": "date-time"
        },
        "value": {
          "description": "The goal current value",
          "type": "number",
          "format": "double"
        },
        "target": {
          "description": "The goal target value",
          "type": "number",
          "format": "double"
        },
        "valueDisplayString": {
          "description": "The textual representation of the current goal value",
          "type": "string"
        },
        "targetDisplayString": {
          "description": "The textual representation of the goal target",
          "type": "string"
        },
        "trend": {
          "description": "The goal value trend",
          "type": "integer",
          "format": "int32"
        },
        "forecast": {
          "description": "The goal value trend forecast",
          "type": "number",
          "format": "double"
        },
        "status": {
          "description": "The ID of the goal status\n\n| ID | Description |\n|-|-|\n| 0 | Not started |\n| 1 | On track |\n| 2 | At risk |\n| 3 | Behind |\n| 4 | Overdue |\n| 5 | Completed |",
          "type": "integer",
          "format": "int32"
        },
        "notes": {
          "description": "The notes for the goal",
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoalNote"
          }
        }
      }
    }
  }
}