From 8de1bbe4c31093ada71884e1e5381408262440b5 Mon Sep 17 00:00:00 2001 From: Ali Rahimi H Date: Mon, 21 Aug 2023 23:24:44 +0330 Subject: [PATCH 1/3] fix useAuth decorator link to authentication section --- docs/standard-library/http/reference/decorators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/standard-library/http/reference/decorators.md b/docs/standard-library/http/reference/decorators.md index 623e0f09354..71892dba54a 100644 --- a/docs/standard-library/http/reference/decorators.md +++ b/docs/standard-library/http/reference/decorators.md @@ -402,7 +402,7 @@ op create(): {@statusCode: 201 | 202} ### `@useAuth` {#@TypeSpec.Http.useAuth} -Specify this service authentication. See the [documentation in the Http library][https://microsoft.github.io/typespec/standard-library/rest/authentication] for full details. +Specify this service authentication. See the [documentation in the Http library](https://microsoft.github.io/typespec/standard-library/http/authentication) for full details. ```typespec @TypeSpec.Http.useAuth(auth: {} | Union | {}[]) From 9b3a7b280435394a83954c28fd67f3fe64f14dad Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 30 Aug 2023 14:42:47 +0300 Subject: [PATCH 2/3] Update decorator docstring --- packages/http/README.md | 2 +- packages/http/lib/http-decorators.tsp | 2 +- packages/http/src/operations.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/http/README.md b/packages/http/README.md index b5d57c00d31..fd9b147175a 100644 --- a/packages/http/README.md +++ b/packages/http/README.md @@ -423,7 +423,7 @@ op create(): {@statusCode: 201 | 202} #### `@useAuth` -Specify this service authentication. See the [documentation in the Http library][https://microsoft.github.io/typespec/standard-library/rest/authentication] for full details. +Specify this service authentication. See the [documentation in the Http library](https://microsoft.github.io/typespec/standard-library/http/authentication) for full details. ```typespec @TypeSpec.Http.useAuth(auth: {} | Union | {}[]) diff --git a/packages/http/lib/http-decorators.tsp b/packages/http/lib/http-decorators.tsp index 20fd6d93a23..a84dd584e3b 100644 --- a/packages/http/lib/http-decorators.tsp +++ b/packages/http/lib/http-decorators.tsp @@ -202,7 +202,7 @@ extern dec server( ); /** - * Specify this service authentication. See the [documentation in the Http library][https://microsoft.github.io/typespec/standard-library/rest/authentication] for full details. + * Specify this service authentication. See the [documentation in the Http library](https://microsoft.github.io/typespec/standard-library/http/authentication) for full details. * * @param auth Authentication configuration. Can be a single security scheme, a union(either option is valid authentication) or a tuple(Must use all authentication together) * @example diff --git a/packages/http/src/operations.ts b/packages/http/src/operations.ts index c2c020611cf..a554bc8ce70 100644 --- a/packages/http/src/operations.ts +++ b/packages/http/src/operations.ts @@ -107,7 +107,7 @@ export function getHttpService( } /** - * @deprecated use `getAllHttpServices` or `resolveHttpOperations` manually + * @deprecated use `getAllHttpServices` instead */ export function getAllRoutes( program: Program, From afcd18baf3f687b928c24876103eeaa5781d7c4a Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 30 Aug 2023 14:46:25 +0300 Subject: [PATCH 3/3] Rush change file --- .../http/fix-useauth-link_2023-08-30-11-46.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 common/changes/@typespec/http/fix-useauth-link_2023-08-30-11-46.json diff --git a/common/changes/@typespec/http/fix-useauth-link_2023-08-30-11-46.json b/common/changes/@typespec/http/fix-useauth-link_2023-08-30-11-46.json new file mode 100644 index 00000000000..e59b9bb12e2 --- /dev/null +++ b/common/changes/@typespec/http/fix-useauth-link_2023-08-30-11-46.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@typespec/http", + "comment": "", + "type": "none" + } + ], + "packageName": "@typespec/http" +} \ No newline at end of file