{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "NewProjectSubscription", "type": "object", "required": [ "event", "projectId", "recipient" ], "properties": { "event": { "$ref": "#/components/schemas/EventName" }, "expiresAt": { "type": "string", "example": "2023-01-07T14:00:00+01:00" }, "projectId": { "type": "string", "example": "1234" }, "filters": { "type": "array", "items": { "type": "object", "properties": { "field": { "type": "string", "minLength": 1 }, "value": { "oneOf": [ { "type": "string" }, { "type": "integer" }, { "type": "boolean" } ] } } } }, "recipient": { "oneOf": [ { "$ref": "#/components/schemas/RecipientChannel_Email" }, { "$ref": "#/components/schemas/RecipientChannel_Webhook" } ], "discriminator": { "propertyName": "channel" } } } }