Skip to content

Commit 48f37bb

Browse files
Uptake changes to new reserved keywords (#2384)
1 parent 2848347 commit 48f37bb

File tree

6 files changed

+23
-4
lines changed

6 files changed

+23
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
3+
changeKind: internal
4+
packages:
5+
- "@azure-tools/typespec-azure-core"
6+
---
7+
8+
Uptake changes to new reserved keywords
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
3+
changeKind: fix
4+
packages:
5+
- "@azure-tools/azure-http-specs"
6+
---
7+
8+
Uptake changes to new reserved keywords

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,6 @@ core/packages/http-client-python/
7979

8080
.gitattributes
8181
CODEOWNERS
82+
83+
# Temp only remove when this pr is merged https://github.com/microsoft/typespec/pull/6451
84+
packages/typespec-client-generator-core/lib/decorators.tsp

packages/azure-http-specs/specs/azure/client-generator-core/access/main.tsp

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ namespace SharedModelInOperation {
116116
@route("/public")
117117
@get
118118
@global.Azure.ClientGenerator.Core.access(global.Azure.ClientGenerator.Core.Access.public)
119-
op public(@query name: string): SharedModel;
119+
op `public`(@query name: string): SharedModel;
120120

121121
@route("/internal")
122122
@get
123123
@global.Azure.ClientGenerator.Core.access(global.Azure.ClientGenerator.Core.Access.internal)
124-
op internal(@query name: string): SharedModel;
124+
op `internal`(@query name: string): SharedModel;
125125
}
126126

127127
@route("/relativeModelInOperation")

packages/typespec-azure-core/lib/traits.tsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ model NoRepeatableRequests {
220220
* @param traitName An optional name to uniquely identify the trait. If unspecified,
221221
* the model type name is used.
222222
*/
223-
extern dec trait(target: Model, traitName?: valueof string);
223+
extern dec `trait`(target: Model, traitName?: valueof string);
224224

225225
/**
226226
* `@traitContext` sets the applicable context for a trait on its envelope property.

0 commit comments

Comments
 (0)