Removing the @error decorator from the error schema will produce a compile error:
error @cadl-lang/rest/duplicate-response: Multiple return types for content type application/json and status code 200
But this error is not highlighted when the code is viewed in VS Code with the Cadl VS Code extension enabled.

Compiler version: Cadl compiler v0.38.3
Removing the
@errordecorator from the error schema will produce a compile error:But this error is not highlighted when the code is viewed in VS Code with the Cadl VS Code extension enabled.
Compiler version: Cadl compiler v0.38.3