-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate
@useAuth
is unique on node (#2958)
fix #2787 having multiple has no effect, the latest value will override the previous ones so there is no reason to use `@useAuth` twice on the same node --------- Co-authored-by: Brian Terlson <[email protected]>
- Loading branch information
1 parent
f884772
commit c9c1f3e
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
.chronus/changes/validate-useauth-unique-2024-1-27-17-26-52.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking | ||
changeKind: feature | ||
packages: | ||
- "@typespec/http" | ||
--- | ||
|
||
Validate that only one `@useAuth` decorator is applied to a type. |
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