Skip to content

Commit dd21e4a

Browse files
chunyu3aviyerMSFT
authored andcommitted
upgrade openapi to typespec library 0.41.0 (Azure#23038)
* upgrade openapi to tyepspec library 0.41.0 * add typespec as custom word * update package.json
1 parent 8677627 commit dd21e4a

22 files changed

+109
-7059
lines changed

custom-words.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2757,4 +2757,4 @@ remediatable
27572757
Overprovisioning
27582758
Unprepares
27592759
Unpreparing
2760-
typespec
2760+
typespec

specification/cognitiveservices/OpenAI.Authoring/common.cadl renamed to specification/cognitiveservices/OpenAI.Authoring/common.tsp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import "@cadl-lang/rest";
1+
import "@typespec/rest";
2+
import "@typespec/http";
23

3-
using Cadl.Rest;
4-
using Cadl.Http;
4+
using TypeSpec.Rest;
5+
using TypeSpec.Http;
56

67
namespace Azure.OpenAI;
78

specification/cognitiveservices/OpenAI.Authoring/deployment.cadl renamed to specification/cognitiveservices/OpenAI.Authoring/deployment.tsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import "@azure-tools/cadl-azure-core";
2-
import "./models/deployment.models.cadl";
3-
import "./serviceCustomizations.cadl";
1+
import "@azure-tools/typespec-azure-core";
2+
import "./models/deployment.models.tsp";
3+
import "./serviceCustomizations.tsp";
44

55
namespace Azure.OpenAI;
66

7-
using Cadl.Http;
7+
using TypeSpec.Http;
88
using Azure.Core;
99

1010
interface Deployments {

specification/cognitiveservices/OpenAI.Authoring/file.cadl renamed to specification/cognitiveservices/OpenAI.Authoring/file.tsp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import "@azure-tools/cadl-azure-core";
2-
import "@cadl-lang/rest";
3-
import "./models/file.models.cadl";
4-
import "./serviceCustomizations.cadl";
1+
import "@azure-tools/typespec-azure-core";
2+
import "@typespec/rest";
3+
import "@typespec/http";
4+
import "./models/file.models.tsp";
5+
import "./serviceCustomizations.tsp";
56

67
namespace Azure.OpenAI;
78

8-
using Cadl.Rest;
9-
using Cadl.Http;
9+
using TypeSpec.Rest;
10+
using TypeSpec.Http;
1011
using Azure.Core;
1112

1213
interface Files

specification/cognitiveservices/OpenAI.Authoring/finetune.cadl renamed to specification/cognitiveservices/OpenAI.Authoring/finetune.tsp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import "@azure-tools/cadl-azure-core";
2-
import "@cadl-lang/rest";
3-
import "./models/finetune.models.cadl";
4-
import "./serviceCustomizations.cadl";
1+
import "@azure-tools/typespec-azure-core";
2+
import "@typespec/rest";
3+
import "@typespec/http";
4+
import "./models/finetune.models.tsp";
5+
import "./serviceCustomizations.tsp";
56

67
namespace Azure.OpenAI;
78

8-
using Cadl.Rest;
9-
using Cadl.Http;
9+
using TypeSpec.Rest;
10+
using TypeSpec.Http;
1011
using Azure.Core;
1112

1213
interface FineTunes {

specification/cognitiveservices/OpenAI.Authoring/main.cadl renamed to specification/cognitiveservices/OpenAI.Authoring/main.tsp

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
import "@cadl-lang/rest";
2-
import "@cadl-lang/versioning";
3-
import "./common.cadl";
4-
import "./deployment.cadl";
5-
import "./file.cadl";
6-
import "./finetune.cadl";
7-
import "./model.routes.cadl";
1+
import "@typespec/rest";
2+
import "@typespec/http";
3+
import "@typespec/versioning";
4+
import "./common.tsp";
5+
import "./deployment.tsp";
6+
import "./file.tsp";
7+
import "./finetune.tsp";
8+
import "./model.routes.tsp";
89

9-
using Cadl.Rest;
10-
using Cadl.Http;
11-
using Cadl.Versioning;
10+
using TypeSpec.Rest;
11+
using TypeSpec.Http;
12+
using TypeSpec.Versioning;
1213

1314
@useAuth(
1415
ApiKeyAuth<ApiKeyLocation.header, "api-key"> |

specification/cognitiveservices/OpenAI.Authoring/model.routes.cadl renamed to specification/cognitiveservices/OpenAI.Authoring/model.routes.tsp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import "@azure-tools/cadl-azure-core";
2-
import "@cadl-lang/rest";
3-
import "./models/model.models.cadl";
4-
import "./serviceCustomizations.cadl";
1+
import "@azure-tools/typespec-azure-core";
2+
import "@typespec/rest";
3+
import "@typespec/http";
4+
import "./models/model.models.tsp";
5+
import "./serviceCustomizations.tsp";
56

67
namespace Azure.OpenAI;
78

@@ -10,7 +11,7 @@ using Cadl.Http;
1011
using Azure.Core;
1112

1213
interface Models {
13-
#suppress "@azure-tools/cadl-azure-core/use-standard-operations" "This is an existing service, we have a non-conforming operation."
14+
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "This is an existing service, we have a non-conforming operation."
1415
@summary("""
1516
Gets a list of all models that are accessible by the Azure OpenAI
1617
resource.

specification/cognitiveservices/OpenAI.Authoring/models/deployment.models.cadl renamed to specification/cognitiveservices/OpenAI.Authoring/models/deployment.models.tsp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import "@cadl-lang/rest";
1+
import "@typespec/rest";
2+
import "@typespec/http";
23

3-
using Cadl.Rest;
4-
using Cadl.Rest.Resource;
4+
using TypeSpec.Rest;
5+
using TypeSpec.Rest.Resource;
56

67
namespace Azure.OpenAI;
78

specification/cognitiveservices/OpenAI.Authoring/models/file.models.cadl renamed to specification/cognitiveservices/OpenAI.Authoring/models/file.models.tsp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import "@cadl-lang/rest";
2-
import "@azure-tools/cadl-azure-core";
1+
import "@typespec/rest";
2+
import "@typespec/http";
3+
import "@azure-tools/typespec-azure-core";
34

4-
using Cadl.Rest;
5+
using TypeSpec.Rest;
56
using Azure.Core;
67

78
namespace Azure.OpenAI;

specification/cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl renamed to specification/cognitiveservices/OpenAI.Authoring/models/finetune.models.tsp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import "@cadl-lang/rest";
2-
import "@azure-tools/cadl-azure-core";
1+
import "@typespec/rest";
2+
import "@typespec/http";
3+
import "@azure-tools/typespec-azure-core";
34

4-
using Cadl.Rest;
5-
using Cadl.Http;
5+
using TypeSpec.Http;
6+
using TypeSpec.Rest;
67
using Azure.Core;
78

89
namespace Azure.OpenAI;

0 commit comments

Comments
 (0)