addedInput schema / properties / recipientFilter / anyOf
Added value: +[
+ {
+ "properties": {
+ "recipientType": {
+ "const": "all",
+ "type": "string"
+ },
+ "tagIds": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "recipientType"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "recipientIds": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "recipientType": {
+ "const": "individual",
+ "type": "string"
+ }
+ },
+ "required": [
+ "recipientType",
+ "recipientIds"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "recipientType": {
+ "const": "segment",
+ "type": "string"
+ },
+ "segmentId": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "recipientType",
+ "segmentId"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "recipientType": {
+ "const": "tier",
+ "type": "string"
+ },
+ "tierId": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "recipientType",
+ "tierId"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "tagIds": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "tagIds"
+ ],
+ "type": "object"
+ }
+]