microsoft / microsoft/typespec

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

Open
#6,621 4 comments 0 reactions 0 assignees View on GitHub
emitter:client:csharp
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

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(encode, ignoreCase: true, out var encodeKind)`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.