{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-rest-recipient-valid-schema.json",
  "title": "RestRecipientValid",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-recipients-api-openapi.yml#/components/schemas/RestRecipientValid",
  "type": "object",
  "properties": {
    "valid": {
      "type": "boolean",
      "description": "If true, the recipient can receive mailings"
    },
    "recipientListId": {
      "type": "integer",
      "description": "Recipient list ID",
      "format": "int64"
    },
    "links": {
      "type": "array",
      "description": "Restful links",
      "items": {
        "type": "object",
        "properties": {
          "uriBuilder": {
            "type": "object"
          },
          "rels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rel": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "params": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "title": {
            "type": "string"
          },
          "uri": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Restful links"
      }
    },
    "validationFailedReason": {
      "type": "string",
      "description": "Reason for a failed recipient validation",
      "enum": [
        "blacklisted",
        "bounced",
        "unsubscribed",
        "not_found"
      ]
    }
  }
}