Skip to content

[tcgc] Kind of duration is unknown #2365

Closed as not planned
Closed as not planned
@pshao25

Description

@pshao25

Like this.

model DurationModel {
    @encode("duration-constant")
    input: duration;
  }

  @put
  @route("/duration")
  op duration(
    @body body: DurationModel
  ): NoContentResponse;

The kind of the type of input TCGC gives me is unknown. However, if I add interface to that operation, the kind of input becomes duration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lib:tcgcIssues for @azure-tools/typespec-client-generator-core library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions