You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#4394
Code changes:
1. deprecate `description` and `details`, use `doc` and `summary`
instead.
2. add `npm run lint` in `Build-Packages.ps1`. So that deprecation
warning will be thrown.
I quickly checked the generation diff. The generation diffs are in cases
where the operation uses tsp template, previously, the `description`
will get tempalte's doc, but now `doc` or `summary` will not. **It only
impacts impl classes**. I think it is acceptable.
eg.,
[code](https://github.com/microsoft/typespec/pull/4529/files#diff-71f0d715f644a82637d8db144d6d3a999b65d05a7b44bd1570306e46c2c83beeL532),
below highlighted template's doc will disappear now.
```diff
@get
listWithEtag is StandardResourceOperations.ResourceList<
Resource,
ResponseHeadersTrait<EtagResponseEnvelope>
>;
/**
++ * Resource list operation template.
* @template Resource Resource type.
* @template Traits Object describing the traits of the operation.
*/
@Foundations.Private.ensureVerb("ResourceList", "GET")
ResourceList<
Resource extends TypeSpec.Reflection.Model,
Traits extends TypeSpec.Reflection.Model = {}
> is Foundations.ResourceList<
Resource,
TraitProperties<Traits & InterfaceTraits, TraitLocation.Parameters, TraitContext.List>,
Foundations.CustomPage<Resource, Traits & InterfaceTraits>,
Traits & InterfaceTraits,
ErrorResponse
>;
```
TCGC now deprecates description and detail, and return typespec description and summary instead.
We should change back to use description and summary.
Refer to Azure/typespec-azure#1235 for more details.
The text was updated successfully, but these errors were encountered: