Skip to content

Commit

Permalink
fix expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Pryz committed May 22, 2024
1 parent d3e5760 commit 30e6329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dispatch/sdk/v1/dispatch.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ message DispatchRequest {
option (buf.validate.message).cel = {
id: "dispatch.request.calls.endpoint.scheme",
message: "Call endpoint must be a http, https or a bridge URL or an AWS Lambda ARN",
expression: "this.calls.all(call, call.endpoint.startsWith('http://') || call.endpoint.startsWith('https://') || call.endpoint.startsWith('bridge://')) || call.endpoint.startsWith('arn:aws:lambda')"
expression: "this.calls.all(call, call.endpoint.startsWith('http://') || call.endpoint.startsWith('https://') || call.endpoint.startsWith('bridge://') || call.endpoint.startsWith('arn:aws:lambda'))"
};

// List of calls to dispatch.
Expand Down

0 comments on commit 30e6329

Please sign in to comment.