{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-experience-cloud/json-schema/salesforce-experience-cloud-search-result-schema.json",
  "title": "SearchResult",
  "description": "Result of a SOSL search",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-experience-cloud-search-api-openapi.yml#/components/schemas/SearchResult",
  "type": "object",
  "properties": {
    "searchRecords": {
      "type": "array",
      "description": "Matching records from the search",
      "items": {
        "$ref": "#/$defs/SObjectRecord"
      }
    }
  },
  "$defs": {
    "SObjectRecord": {
      "type": "object",
      "description": "A Salesforce sObject record with field values",
      "properties": {
        "attributes": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "description": "sObject type name"
            },
            "url": {
              "type": "string",
              "format": "uri",
              "description": "REST API URL for this record"
            }
          }
        },
        "Id": {
          "type": "string",
          "description": "The 18-character record ID"
        }
      },
      "additionalProperties": true
    }
  }
}