Fix doc comments that document things that don't exist in @typespec/rest - #11541
Fix doc comments that document things that don't exist in @typespec/rest#11541timotheeguerin wants to merge 1 commit into
Conversation
5df4b0b to
c25b578
Compare
531e126 to
642ad15
Compare
|
You can try these changes here
|
commit: |
|
All changed packages have been documented.
Show changes
|
e8b5b31 to
b7daab8
Compare
The operations inside the resource interface templates carried a copy of their enclosing interface's `@template` tags, documenting template parameters the operations do not have. Removes all 29 of them. Also escapes the `@path`/`@segment`/`@resource`/`@autoRoute` references in `rest-decorators.tsp`: without backticks (or a code fence, for the `@segment` example) the doc parser reads them as tags and silently drops the rest of the description. Prerequisite for #1229 and #2090.
b7daab8 to
c1ecc9d
Compare
|
Fixed the description bleed in c1ecc9d. Documenting the body parameters gave them a real doc, and Added Verified by emitting OpenAPI for a spec built on Rebased onto latest main. |
This is the package that motivated #2090.
Every operation inside the resource interface templates carries a copy of its enclosing interface's
@templatetags, documenting template parameters the operation does not have:29 of these are removed.
rest-decorators.tsphas the other flavour of the bug — code references the doc parser mistakes for tags, which truncate the published text:These are now backticked, and the
@segmentexample gets the```typespecfence it was missing.The remaining change documents the request body parameters (
resource,properties) of the resource operation templates.Prerequisite for #1229 and #2090. The library linter rule that catches this is in #11543, which must merge after this one:
lint-typespec-libraryruns with--warn-as-errorinside every package'sbuild, so the docs have to exist before the rule is turned on.Independent of the other documentation PRs (#11539, #11540, #11542) — they touch disjoint packages and can merge in any order.