{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/benjipays-com/json-schema/benjipays-com-echo-response-schema.json",
  "title": "EchoResponse",
  "description": "Echo response",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benjipays-com-benji-pays-partner-api-openapi.yml#/components/schemas/EchoResponse",
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "Response message"
    },
    "echo": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "minLength": 1,
          "maxLength": 500,
          "description": "Message to echo back"
        },
        "metadata": {
          "description": "Optional metadata",
          "type": "object",
          "properties": {
            "source": {
              "description": "Source of the message",
              "type": "string",
              "maxLength": 100
            },
            "timestamp": {
              "description": "ISO 8601 timestamp",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "message"
      ],
      "additionalProperties": false,
      "description": "Echoed request body"
    },
    "receivedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      "description": "ISO 8601 timestamp when request was received"
    }
  },
  "required": [
    "message",
    "echo",
    "receivedAt"
  ],
  "additionalProperties": false
}