{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-experience-cloud/json-schema/salesforce-experience-cloud-favorites-representation-schema.json",
  "title": "FavoritesRepresentation",
  "description": "User's favorites",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-experience-cloud-favorites-api-openapi.yml#/components/schemas/FavoritesRepresentation",
  "type": "object",
  "properties": {
    "favorites": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Favorite"
      }
    }
  },
  "$defs": {
    "Favorite": {
      "type": "object",
      "description": "A user favorite item",
      "properties": {
        "color": {
          "type": "string"
        },
        "iconUrl": {
          "type": "string",
          "format": "uri"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "sortOrder": {
          "type": "integer"
        },
        "target": {
          "type": "string"
        },
        "targetType": {
          "type": "string",
          "enum": [
            "Record",
            "ListView",
            "Object",
            "Dashboard",
            "Report"
          ]
        }
      }
    }
  }
}