-
Notifications
You must be signed in to change notification settings - Fork 360
Deprecate @list decorator in favor of rest's @listsResource
#2093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2e201c7
2dd78eb
e68e394
f6f7dbe
fc1746d
aeb0b41
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "changes": [ | ||
| { | ||
| "packageName": "@typespec/compiler", | ||
| "comment": "**Deprecate** `@list` decorator in favor of `@listsResource` in `@typespec/rest`", | ||
| "type": "none" | ||
| }, | ||
| { | ||
| "packageName": "@typespec/compiler", | ||
| "comment": "**Deprecate** `isListOperation` function in favor of `isListOperation` in `@typespec/rest`", | ||
| "type": "none" | ||
| }, | ||
| { | ||
| "packageName": "@typespec/compiler", | ||
| "comment": "**Deprecate** `getListOperationType` function", | ||
| "type": "none" | ||
| } | ||
| ], | ||
| "packageName": "@typespec/compiler" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "changes": [ | ||
| { | ||
| "packageName": "@typespec/library-linter", | ||
| "comment": "", | ||
| "type": "none" | ||
| } | ||
| ], | ||
| "packageName": "@typespec/library-linter" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "changes": [ | ||
| { | ||
| "packageName": "@typespec/rest", | ||
| "comment": "Add `isListOperation` function migrated from `@typespec/compiler`", | ||
| "type": "none" | ||
| } | ||
| ], | ||
| "packageName": "@typespec/rest" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -118,7 +118,7 @@ describe("rest: routes", () => { | |
| @autoRoute | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lmazuel do we want to talk about this deprecation, this was an undocumented decorator in the compiler that was only used internally in the rest library.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any thoughts on this?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably just bring it up in the DPG meeting today at 11
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds like folks are OK with this one going in! |
||
| interface SubInterface { | ||
| @get | ||
| @list(Subthing) | ||
| @listsResource(Subthing) | ||
| @segmentOf(Subthing) | ||
| GetSubthings(...KeysOf<Thing>): string; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is unfortunate that we get the doc now that it is deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be nice if the deprecation notice came through with it. The only other option is to just take out the
externdefinition and put the exception for@listback intolibrary-linter, but is that worse?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I guess that is dependent on the design meeting that was inconclusive last week :(