feat: allow catch verbs to receive request types as any
#6201
ci.yml
on: pull_request
Shard Integration Tests
0s
Test Go
2m 46s
Test README
1m 30s
Test Scripts
7s
SQL
38s
Ensure Frozen Migrations
9s
Lint
1m 24s
Proto Breaking Change Check
15s
Console
1m 2s
VSCode Extension
44s
Rebuild All
0s
Build Docs
8s
Matrix: Integration Test
Integration Success
0s
Annotations
2 errors
Test Go:
backend/schema/validate_test.go#L498
=== RUN TestValidate/PubSubCatch
backend/schema/validate_test.go:498: Expected values to be equal:
[]string{
- "34:5-5: catch verb must have a request type of builtin.CatchRequest<test.EventA> but found builtin.CatchRequest<test.EventB>",
+ "34:5-5: catch verb must have a request type of builtin.CatchRequest<test.EventA> or builtin.CatchRequest<Any>, but found builtin.CatchRequest<test.EventB>",
"38:5-5: catch verb must not have a response type but found test.EventA",
- "42:5-5: catch verb must have a request type of builtin.CatchRequest<test.EventB> but found Unit",
- "46:5-5: catch verb must have a request type of builtin.CatchRequest<test.EventB> but found test.EventB",
+ "42:5-5: catch verb must have a request type of builtin.CatchRequest<test.EventB> or builtin.CatchRequest<Any>, but found Unit",
+ "46:5-5: catch verb must have a request type of builtin.CatchRequest<test.EventB> or builtin.CatchRequest<Any>, but found test.EventB",
"50:5-5: expected catch to be a verb",
}
--- FAIL: TestValidate/PubSubCatch (0.02s)
|
Test Go
Process completed with exit code 1.
|