Skip to content

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

@JoshLove-msft

Description

@JoshLove-msft

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.rnrnThe test is currently [Ignore]-d in ClientDefaultValueTests.cs pending emitter support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharpfeatureNew feature or requestneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions