fix: all references without module get normalized to its module #10450
Annotations
7 errors and 1 warning
Test:
backend/ingress/handler_test.go#L61
=== RUN TestIngress
backend/ingress/handler_test.go:61: Did not expect an error but got:
23:25: ingress verb getAlias: request type test.HttpRequest<Unit, Unit, test.AliasRequest>: unknown reference test.HttpRequest<Unit, Unit, test.AliasRequest>
23:25: unknown reference "test.HttpRequest<Unit, Unit, test.AliasRequest>", is the type annotated and exported?
23:69: ingress verb getAlias: response type test.HttpResponse<test.Empty, test.Empty>: unknown reference test.HttpResponse<test.Empty, test.Empty>
23:69: unknown reference "test.HttpResponse<test.Empty, test.Empty>", is the type annotated and exported?
23:82: unknown reference "test.Empty", is the type annotated and exported?
23:89: unknown reference "test.Empty", is the type annotated and exported?
26:24: ingress verb getPath: request type test.HttpRequest<Unit, test.PathParameterRequest, Unit>: unknown reference test.HttpRequest<Unit, test.PathParameterRequest, Unit>
26:24: unknown reference "test.HttpRequest<Unit, test.PathParameterRequest, Unit>", is the type annotated and exported?
26:76: ingress verb getPath: response type test.HttpResponse<test.Empty, test.Empty>: unknown reference test.HttpResponse<test.Empty, test.Empty>
26:76: unknown reference "test.HttpResponse<test.Empty, test.Empty>", is the type annotated and exported?
26:89: unknown reference "test.Empty", is the type annotated and exported?
26:96: unknown reference "test.Empty", is the type annotated and exported?
29:33: ingress verb postMissingTypes: request type test.HttpRequest<test.MissingTypes, Unit, Unit>: unknown reference test.HttpRequest<test.MissingTypes, Unit, Unit>
29:33: unknown reference "test.HttpRequest<test.MissingTypes, Unit, Unit>", is the type annotated and exported?
29:77: ingress verb postMissingTypes: response type test.HttpResponse<test.Empty, test.Empty>: unknown reference test.HttpResponse<test.Empty, test.Empty>
29:77: unknown reference "test.HttpResponse<test.Empty, test.Empty>", is the type annotated and exported?
29:90: unknown reference "test.Empty", is the type annotated and exported?
29:97: unknown reference "test.Empty", is the type annotated and exported?
32:32: ingress verb postJsonPayload: request type test.HttpRequest<test.JsonPayload, Unit, Unit>: unknown reference test.HttpRequest<test.JsonPayload, Unit, Unit>
32:32: unknown reference "test.HttpRequest<test.JsonPayload, Unit, Unit>", is the type annotated and exported?
32:75: ingress verb postJsonPayload: response type test.HttpResponse<test.Empty, test.Empty>: unknown reference test.HttpResponse<test.Empty, test.Empty>
32:75: unknown reference "test.HttpResponse<test.Empty, test.Empty>", is the type annotated and exported?
32:88: unknown reference "test.Empty", is the type annotated and exported?
32:95: unknown reference "test.Empty", is the type annotated and exported?
--- FAIL: TestIngress (0.03s)
|
Test:
backend/ingress/request_test.go#L104
=== RUN TestBuildRequestBody
backend/ingress/request_test.go:104: Did not expect an error but got:
test:27:25: ingress verb getAlias: request type test.HttpRequest<Unit, Unit, test.AliasRequest>: unknown reference test.HttpRequest<Unit, Unit, test.AliasRequest>
test:27:25: unknown reference "test.HttpRequest<Unit, Unit, test.AliasRequest>", is the type annotated and exported?
test:27:69: ingress verb getAlias: response type test.HttpResponse<test.Empty, test.Empty>: unknown reference test.HttpResponse<test.Empty, test.Empty>
test:27:69: unknown reference "test.HttpResponse<test.Empty, test.Empty>", is the type annotated and exported?
test:27:82: unknown reference "test.Empty", is the type annotated and exported?
test:27:89: unknown reference "test.Empty", is the type annotated and exported?
test:30:24: ingress verb getPath: request type test.HttpRequest<Unit, test.PathParameterRequest, Unit>: unknown reference test.HttpRequest<Unit, test.PathParameterRequest, Unit>
test:30:24: unknown reference "test.HttpRequest<Unit, test.PathParameterRequest, Unit>", is the type annotated and exported?
test:30:76: ingress verb getPath: response type test.HttpResponse<test.Empty, test.Empty>: unknown reference test.HttpResponse<test.Empty, test.Empty>
test:30:76: unknown reference "test.HttpResponse<test.Empty, test.Empty>", is the type annotated and exported?
test:30:89: unknown reference "test.Empty", is the type annotated and exported?
test:30:96: unknown reference "test.Empty", is the type annotated and exported?
test:33:103: unknown reference "test.Empty", is the type annotated and exported?
test:33:30: ingress verb optionalQuery: request type test.HttpRequest<Unit, Unit, test.QueryParameterRequest>: unknown reference test.HttpRequest<Unit, Unit, test.QueryParameterRequest>
test:33:30: unknown reference "test.HttpRequest<Unit, Unit, test.QueryParameterRequest>", is the type annotated and exported?
test:33:83: ingress verb optionalQuery: response type test.HttpResponse<test.Empty, test.Empty>: unknown reference test.HttpResponse<test.Empty, test.Empty>
test:33:83: unknown reference "test.HttpResponse<test.Empty, test.Empty>", is the type annotated and exported?
test:33:96: unknown reference "test.Empty", is the type annotated and exported?
test:36:33: ingress verb postMissingTypes: request type test.HttpRequest<test.MissingTypes, Unit, Unit>: unknown reference test.HttpRequest<test.MissingTypes, Unit, Unit>
test:36:33: unknown reference "test.HttpRequest<test.MissingTypes, Unit, Unit>", is the type annotated and exported?
test:36:77: ingress verb postMissingTypes: response type test.HttpResponse<test.Empty, test.Empty>: unknown reference test.HttpResponse<test.Empty, test.Empty>
test:36:77: unknown reference "test.HttpResponse<test.Empty, test.Empty>", is the type annotated and exported?
test:36:90: unknown reference "test.Empty", is the type annotated and exported?
test:36:97: unknown reference "test.Empty", is the type annotated and exported?
test:39:32: ingress verb postJsonPayload: request type test.HttpRequest<test.JsonPayload, Unit, Unit>: unknown reference test.HttpRequest<test.JsonPayload, Unit, Unit>
test:39:32: unknown reference "test.HttpRequest<test.JsonPayload, Unit, Unit>", is the type annotated and exported?
test:39:75: ingress verb postJsonPayload: response type test.HttpResponse<test.Empty, test.Empty>: unknown reference test.HttpResponse<test.Empty, test.Empty>
test:39:75: unknown reference "test.HttpResponse<test.Empty, test.Empty>", is the type annotated and exported?
test:39:88: unknown reference "test.Empty", is the type annotated and exported?
test:39:95: unknown reference "test.Empty", is the type annotated and exported?
test:42:24: ingress verb getById: request type test.HttpRequest<Unit, Int, Unit>: unknown reference test.HttpRequest<Unit, Int, Unit>
|
Test:
common/schema/schema_test.go#L696
=== RUN TestParsing/InvalidRequestRef
common/schema/schema_test.go:696: module test { verb test(InvalidRequest) InvalidResponse}
[]string{
- "1:25: unknown reference \"InvalidRequest\", is the type annotated and exported?",
- "1:41: unknown reference \"InvalidResponse\", is the type annotated and exported?",
+ "1:25: unknown reference \"test.InvalidRequest\", is the type annotated and exported?",
+ "1:41: unknown reference \"test.InvalidResponse\", is the type annotated and exported?",
}
--- FAIL: TestParsing/InvalidRequestRef (0.01s)
|
Test:
common/schema/schema_test.go#L696
=== RUN TestParsing/InvalidDataMetadata
common/schema/schema_test.go:696: module test { data Data {} +calls verb }
[]string{
- "1:28: metadata \"+calls verb\" is not valid on data structures",
- "1:35: unknown reference \"verb\", is the type annotated and exported?",
+ "1:28: metadata \"+calls test.verb\" is not valid on data structures",
+ "1:35: unknown reference \"test.verb\", is the type annotated and exported?",
}
--- FAIL: TestParsing/InvalidDataMetadata (0.01s)
|
Test:
common/schema/schema_test.go#L698
=== RUN TestParsing/BuiltinRef
common/schema/schema_test.go:698: Did not expect an error but got:
1:30: unknown reference "test.HttpRequest<String, Unit, Unit>", is the type annotated and exported?
1:63: unknown reference "test.HttpResponse<String, String>", is the type annotated and exported?
--- FAIL: TestParsing/BuiltinRef (0.01s)
|
Test:
common/schema/schema_test.go#L698
=== RUN TestParsing/TypeParameters
common/schema/schema_test.go:698: Did not expect an error but got:
4:13: unknown reference "test.T", is the type annotated and exported?
--- FAIL: TestParsing/TypeParameters (0.01s)
|
Test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading