Examples multi response #10180
+148
−48
Draft
Examples multi response #10180
Annotations
2 errors
|
Test
Process completed with exit code 1.
|
|
Test:
packages/typespec-azure-core/test/rules/lro-polling-operation.test.ts#L51
AssertionError: Unexpected diagnostics:
/test/main.tsp:18:12 - warning @azure-tools/typespec-azure-core/polling-operation-no-ref-or-link: An operation decorated with '@pollingOperation' must either return a response with an 'Operation-Location' header that will contain a runtime link to the polling operation, or specify parameters and return type properties to map into the polling operation parameters. A map into polling operation parameters can be created using the '@pollingOperationParameter' decorator
/test/main.tsp:21:12 - warning @azure-tools/typespec-azure-core/polling-operation-no-ref-or-link: An operation decorated with '@pollingOperation' must either return a response with an 'Operation-Location' header that will contain a runtime link to the polling operation, or specify parameters and return type properties to map into the polling operation parameters. A map into polling operation parameters can be created using the '@pollingOperationParameter' decorator
simple
❯ expectDiagnosticEmpty ../../core/packages/compiler/src/testing/expect.ts:14:9
❯ compileAndDiagnose ../../core/packages/compiler/src/testing/rule-tester.ts:129:26
❯ Object.toBeValid ../../core/packages/compiler/src/testing/rule-tester.ts:60:32
❯ test/rules/lro-polling-operation.test.ts:51:3
|
Loading