microsoft / microsoft/typespec
[http-client-csharp] emitter support for @clientDefaultValue on model properties
Open
emitter:client:csharp
feature
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
The Azure C# emitter does not currently apply client-side default values for model properties marked with the legacy `@clientDefaultValue` decorator. The Spector test `Azure_ClientGenerator_Core_ClientDefaultValue_PutModelProperty` (in `azure-http-specs`) constructs `new ModelWithDefaultValues("test")` and expects `timeout=30`, `tier="standard"`, `retry=true` to be auto-populated and serialized, but only `name` is sent.`r`n`r`nThe test is currently `[Ignore]`-d in `ClientDefaultValueTests.cs` pending emitter support.
Contributor guide
Assessment
This issue has not been assessed yet.