Whisperr, Inc. · Schema

Whisperr wire conformance cases

CompanyCustomer RetentionChurnMarketing AutomationArtificial IntelligenceSaaSSubscriptionCustomer EngagementEvent IngestionAnalyticsCustomer DataEmail DeliveryAgents

Properties

Name Type Description
$schema string
version integer
description string
cases array
View JSON Schema on GitHub

JSON Schema

whisperr-inc-wire.schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/WhisperrAI/whisperr-spec/main/schemas/wire.schema.json",
  "title": "Whisperr wire conformance cases",
  "type": "object",
  "required": ["version", "cases"],
  "additionalProperties": false,
  "properties": {
    "$schema": { "type": "string" },
    "version": { "type": "integer", "minimum": 1 },
    "description": { "type": "string" },
    "cases": {
      "type": "array",
      "minItems": 1,
      "items": { "$ref": "#/$defs/case" }
    }
  },
  "$defs": {
    "case": {
      "type": "object",
      "required": ["name", "op", "scenario", "endpoint"],
      "additionalProperties": false,
      "properties": {
        "name": { "type": "string", "minLength": 1 },
        "op": { "enum": ["track", "identify"] },
        "scenario": { "type": "object" },
        "endpoint": { "type": "string", "pattern": "^/v1/" },
        "expectedEvent": { "type": "object" },
        "expectedOccurredAt": { "type": "string" },
        "expectedBody": { "type": "object" },
        "contextMustContain": {
          "type": "array",
          "items": { "type": "string", "minLength": 1 }
        },
        "occurredAtRfc3339Z": { "type": "boolean" }
      }
    }
  }
}