Skip to content

[http-client-csharp] Deserialize additional information from TCGC output #6621

@pshao25

Description

@pshao25

A specific example is

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

TCGC outputs:

"kind": "duration",
"name": "duration",
"encode": "duration-constant",

When we do TypeSpecInputDurationTypeConverter, we need extra logic to map or store this information to the downstream plugin, which we don't have it yet.

We currently only have Enum.TryParse<DurationKnownEncoding>(encode, ignoreCase: true, out var encodeKind).

Metadata

Metadata

Assignees

No one assigned

    Labels

    emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharp

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions