Describe the bug
The client emitter respects @added decorators at the property level, but seems to ignore them at the model level.
Reproduction
Given this TypeSpec:
@added(Versions.v2)
model AlsoAddedInV2 {}
model Foo {
name: string;
@added(Versions.v2)
addedInV2: string;
}
running the http-client-csharp emitter with api-version: v1 will output a Foo class without the addedInV2 property, but will also output a AlsoAddedInV2 class.
Checklist
Describe the bug
The client emitter respects
@addeddecorators at the property level, but seems to ignore them at the model level.Reproduction
Given this TypeSpec:
running the
http-client-csharpemitter withapi-version: v1will output aFooclass without theaddedInV2property, but will also output aAlsoAddedInV2class.Checklist