Skip to content

Commit

Permalink
Support angle brackets in function names
Browse files Browse the repository at this point in the history
Python functions can have angle brackets in their names, for example when
defined inside another function. For example:

    run.<locals>.hello_world_async
  • Loading branch information
pelletier committed Mar 6, 2024
1 parent 2334b77 commit 683aeb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dispatch/sdk/v1/call.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ message Call {
// received by the function service when the asynchronous call is made.
string function = 3 [
(buf.validate.field).required = true,
(buf.validate.field).string.pattern = "^[a-zA-Z_][a-zA-Z0-9_]*$"
(buf.validate.field).string.pattern = "^[a-zA-Z_][a-zA-Z0-9_<>]*$"
];

// Arguments to the coroutine.
Expand Down

0 comments on commit 683aeb2

Please sign in to comment.