Skip to content

Commit

Permalink
Serialize trigger if filter to expression to match spec.
Browse files Browse the repository at this point in the history
The configuration format requires this to be serialized as "expression" not "if."
  • Loading branch information
djfarrelly committed Jul 26, 2024
1 parent d396077 commit 873592b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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?
)
Expand Down

0 comments on commit 873592b

Please sign in to comment.