-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http-client-java, emitter, deprecate description and details (#4529)
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 >; ```
- Loading branch information
1 parent
fa68969
commit 378c4e0
Showing
15 changed files
with
63 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.