Skip to content

"multiple return types for content-type ..." problem not shown in VS Code #1419

Description

@mikekistler

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.

image

Compiler version: Cadl compiler v0.38.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions