microsoft / microsoft/typespec

[http-client-csharp] emitter support for @clientDefaultValue on model properties

Open
#10,578 1 comment 0 reactions 0 assignees View on GitHub
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

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.