{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "UpsertStorelinkEvent",
  "description": "UpsertStorelinkEvent schema from Public API (Otter Public API).",
  "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-upsert-storelink-event-schema.json",
  "type": "object",
  "properties": {
    "credentialsSchemaVersion": {
      "type": "string",
      "description": "The version of the credentials schema.",
      "example": "1.0"
    },
    "credentials": {
      "type": "array",
      "description": "Array of fulfilled credentials containing its keys and values.",
      "items": {
        "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-fulfilled-credential-schema.json"
      },
      "example": [
        {
          "key": "email",
          "value": "test@email.com"
        },
        {
          "key": "password",
          "value": "test-pwd-1234"
        }
      ]
    },
    "storeInfo": {
      "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-store-info-2-schema.json"
    }
  },
  "required": [
    "credentialsSchemaVersion",
    "credentials",
    "storeInfo"
  ]
}