Skip to content

Commit

Permalink
Backmerge autorest 0.38.1 hotfix (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin authored Jan 29, 2024
1 parent 8951395 commit b0cb2f3
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@typespec/http": "workspace:~0.52.0",
"@typespec/rest": "workspace:~0.52.0",
"@azure-tools/typespec-azure-core": "workspace:~0.38.0",
"@azure-tools/typespec-autorest": "workspace:~0.38.0",
"@azure-tools/typespec-autorest": "workspace:~0.38.1",
"@azure-tools/typespec-azure-resource-manager": "workspace:~0.38.0",
"@azure-tools/typespec-client-generator-core": "workspace:~0.38.0"
},
Expand Down
12 changes: 12 additions & 0 deletions packages/typespec-autorest/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@azure-tools/typespec-autorest",
"entries": [
{
"version": "0.38.1",
"tag": "@azure-tools/typespec-autorest_v0.38.1",
"date": "Mon, 29 Jan 2024 22:16:39 GMT",
"comments": {
"patch": [
{
"comment": "Fix: Autorest emitter should generated format: decimal"
}
]
}
},
{
"version": "0.38.0",
"tag": "@azure-tools/typespec-autorest_v0.38.0",
Expand Down
9 changes: 8 additions & 1 deletion packages/typespec-autorest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @azure-tools/typespec-autorest

This log was last generated on Wed, 24 Jan 2024 05:47:18 GMT and should not be manually modified.
This log was last generated on Mon, 29 Jan 2024 22:16:39 GMT and should not be manually modified.

## 0.38.1
Mon, 29 Jan 2024 22:16:39 GMT

### Patches

- Fix: Autorest emitter should generated format: decimal

## 0.38.0
Wed, 24 Jan 2024 05:47:18 GMT
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-autorest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-autorest",
"version": "0.38.0",
"version": "0.38.1",
"author": "Microsoft Corporation",
"description": "TypeSpec library for emitting openapi from the TypeSpec REST protocol binding",
"homepage": "https://azure.github.io/typespec-azure",
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-autorest/src/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,7 @@ function createOAPIEmitter(program: Program, options: ResolvedAutorestEmitterOpt
case "decimal":
return { type: "number", format: "decimal" };
case "decimal128":
return { type: "number", format: "decimal128" };
return { type: "number", format: "decimal" };
case "string":
return { type: "string" };
case "boolean":
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-autorest/test/primitive-types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe("typespec-autorest: primitives", () => {
["duration", { type: "string", format: "duration" }],
["bytes", { type: "string", format: "byte" }],
["decimal", { type: "number", format: "decimal" }],
["decimal128", { type: "number", format: "decimal128" }],
["decimal128", { type: "number", format: "decimal" }],
];

for (const test of cases) {
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-azure-playground-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@typespec/http": "workspace:~0.52.0",
"@typespec/openapi": "workspace:~0.52.0",
"@typespec/openapi3": "workspace:~0.52.0",
"@azure-tools/typespec-autorest": "workspace:~0.38.0",
"@azure-tools/typespec-autorest": "workspace:~0.38.1",
"@azure-tools/typespec-azure-core": "workspace:~0.38.0",
"@azure-tools/typespec-azure-resource-manager": "workspace:~0.38.0",
"@azure-tools/typespec-client-generator-core": "workspace:~0.38.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/typespec-azure-resource-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"peerDependencies": {
"@typespec/compiler": "workspace:~0.52.0",
"@azure-tools/typespec-azure-core": "~0.38.0",
"@azure-tools/typespec-autorest": "~0.38.0",
"@azure-tools/typespec-autorest": "~0.38.1",
"@typespec/openapi": "workspace:~0.52.0",
"@typespec/rest": "workspace:~0.52.0",
"@typespec/http": "workspace:~0.52.0",
Expand All @@ -64,7 +64,7 @@
"@typespec/compiler": "workspace:~0.52.0",
"@typespec/openapi": "workspace:~0.52.0",
"@azure-tools/typespec-azure-core": "workspace:~0.38.0",
"@azure-tools/typespec-autorest": "workspace:~0.38.0",
"@azure-tools/typespec-autorest": "workspace:~0.38.1",
"@typespec/rest": "workspace:~0.52.0",
"@typespec/http": "workspace:~0.52.0",
"@typespec/versioning": "workspace:~0.52.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/typespec-service-csharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
"@typespec/rest": "workspace:~0.52.0",
"@typespec/http": "workspace:~0.52.0",
"@typespec/versioning": "workspace:~0.52.0",
"@azure-tools/typespec-autorest": "~0.38.0",
"@azure-tools/typespec-autorest": "~0.38.1",
"@azure-tools/typespec-azure-core": "~0.38.0"
},
"dependencies": {
"change-case": "~5.3.0"
},
"devDependencies": {
"@typespec/compiler": "workspace:~0.52.0",
"@azure-tools/typespec-autorest": "workspace:~0.38.0",
"@azure-tools/typespec-autorest": "workspace:~0.38.1",
"@typespec/openapi": "workspace:~0.52.0",
"@typespec/rest": "workspace:~0.52.0",
"@typespec/http": "workspace:~0.52.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0cb2f3

Please sign in to comment.