Skip to content

[tcgc] Kind of duration is unknown #2365

Open
@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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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