From 934786355d9ac55bd1b7077869a0c6e5885df492 Mon Sep 17 00:00:00 2001 From: Dan Farrelly Date: Fri, 26 Jul 2024 10:22:17 -0400 Subject: [PATCH] Serialize trigger if filter to expression to match spec. (#61) The configuration format requires this to be serialized as "expression" not "if." --- inngest/src/main/kotlin/com/inngest/InngestFunctionTriggers.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inngest/src/main/kotlin/com/inngest/InngestFunctionTriggers.kt b/inngest/src/main/kotlin/com/inngest/InngestFunctionTriggers.kt index 665c5f19..fbe0913d 100644 --- a/inngest/src/main/kotlin/com/inngest/InngestFunctionTriggers.kt +++ b/inngest/src/main/kotlin/com/inngest/InngestFunctionTriggers.kt @@ -9,7 +9,7 @@ abstract class InngestFunctionTrigger // or interface or data class @JvmOverloads constructor( @Json(serializeNull = false) val event: String? = null, - @Json(serializeNull = false) val `if`: String? = null, + @Json(serializeNull = false, name = "expression") val `if`: String? = null, @Json(serializeNull = false) val cron: String? = null, // IDEA - Add timeout and re-use for cancelOn? )