Skip to content

[Bug]: Empty path generated by typespec-autorest emitter #2343

Open
@catalinaperalta

Description

@catalinaperalta

Describe the bug

The typespec-autorest emitter outputs an empty path for an operation definition like the following: playground example

I believe this type of operation should be generated under x-ms-paths but at the very least it should output a path like "/" since the operation is at the root of the endpoint.

cc @timotheeguerin

Reproduction

Linked above

Checklist

  • Follow our Code of Conduct
  • Check that this issue is about the Azure libraries for typespec. For bug in the typespec language or core libraries file it in the TypeSpec repo
  • Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingemitter:autorestIssues for @azure-tools/typespec-autorest emittertriaged:core

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions