Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions documentation/ci-fix.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@ If your problem is some existing error name that is not a word and need to supre

## Prettier check

Please run the following command (from an administrator Node.js command prompt if running on Windows):
To update all the spec files for a given service run the following:

```
# To fix a particular service swagger cd to that directory like
cd specification/contosowidgetmanager
# to fix all the files in the repo run from the root of the repo
npm install
npm run prettier-fix
```

Or if you want to fix specified service, use the complete path, not relative:

```
npm install
npm run prettier -- --write "<path to repo>/azure-rest-api-specs/specification/**/*.json"
npx prettier -w **/*.json
```

Then please commit and push changes made by prettier.
Expand Down
415 changes: 183 additions & 232 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 8 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
{
"name": "azure-rest-api-specs",
"dependencies": {
"devDependencies": {
"@azure-tools/cadl-apiview": "0.3.5",
"@azure-tools/cadl-autorest": "0.26.0",
"@azure-tools/cadl-azure-core": "0.26.0",
"@azure-tools/cadl-azure-resource-manager": "0.26.0",
"@azure-tools/cadl-providerhub": "0.26.0",
"@azure-tools/cadl-apiview": "0.3.5",
"@azure-tools/typespec-apiview": "0.4.4",
"@azure-tools/typespec-autorest": "0.29.0",
"@azure-tools/typespec-azure-core": "0.29.0",
"@azure-tools/typespec-azure-resource-manager": "0.29.0",
"@azure-tools/typespec-providerhub": "0.29.0",
"@azure-tools/typespec-apiview": "0.4.4",
"@typespec/compiler": "0.43.0"
},
"devDependencies": {
"@typespec/compiler": "0.43.0",
"@azure/avocado": "^0.8.4",
"@types/prettier": "^2.6.1",
"prettier": "^2.7.1",
"ts-node": "^10.1.0",
"typescript": "^3.5.3"
"@types/prettier": "^2.7.2",
"prettier": "^2.8.8",
"typescript": "~5.0.4"
},
"scripts": {
"prettier-check": "ts-node ./scripts/prettier-check.ts",
"prettier-fix": "prettier --write specification/**/*.json"
"postinstall": "tsc"
},
"private": true
}
22 changes: 0 additions & 22 deletions scripts/prettier-check.ts

This file was deleted.

81 changes: 0 additions & 81 deletions scripts/utils.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"syncToken": "zAJw6V16=Njo1IzUxNjQ2NzM=;sn=5164673"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"syncToken": "zAJw6V16=Njo1IzUxNjQ2NzM=;sn=5164673"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"status": "Succeeded"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"status": "Succeeded"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"status": "Succeeded"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"status": "Succeeded"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"transactionId": "HqU6PeK5AkCRSpW8eAbL0A.1.1.2.1.987824181.1"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"threadId": "19:6e5d6ca1d75044a49a36a7965ec4a906@thread.v2"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"transactionId": "H8Gpj3NkIU6bXlWw8WPvhQ.2.1.2.1.985333801.1"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"threadId": "19:6e5d6ca1d75044a49a36a7965ec4a906@thread.v2"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"transactionId": "foMkntkKS0O/MhMlIE5Aag.1.1.1.1.1004077250.1"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"threadId": "19:f1400e1c542f4086a606b52ad20cd0bd@thread.v2"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"threadId": "19:f1400e1c542f4086a606b52ad20cd0bd@thread.v2"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
"transactionId": "gK6+kgANy0O1wchlVKVTJg.1.1.1.1.921436178.1"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
"threadId": "19:1d594fb1eeb14566903cbc5decb5bf5b@thread.v2"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"transactionId": "KibptDpcLEeEFnlR7cI3QA.1.1.2.1.848298005.1"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"transactionId": "9q6cO7i4FkaZ+5RRVzshVw.1.1.1.1.974913783.1"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"transactionId": "zGCq8IGRr0aEF6COuy7wSA.1.1.1.1.978649284.1"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"transactionId": "GBE9MB2a40KEWzexIg0D3A.1.1.1.1.856359041.1"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
"threadId": "19:2cc3504c41244d7483208a4f58a1f188@thread.v2"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"threadId": "19:5870b8f021d74fd786bf5aeb095da291@thread.v2"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"recordingFormatType": "Mp3"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
]
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"ReceivedTimestamp": "2020-09-18T00:27:45.32Z"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
}
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2020-09-18T00:27:47Z"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
}
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
}
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
}
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
}
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"latestPreviewKubernetesVersion": "1.21.1"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"moduleId": "DeviceModuleID"
},
"specversion": "1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"deviceId": "LogicAppTestDevice"
},
"specversion": "1.0"
}
}
Loading