microsoft / microsoft/typespec
[http-client-csharp] Deserialize additional information from TCGC output
Open
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
Assessment
This issue has not been assessed yet.