2016-11-09 03:38:30 +03:00
|
|
|
{
|
2017-10-21 03:36:41 +03:00
|
|
|
// Use IntelliSense to learn about possible Node.js debug attributes.
|
|
|
|
// Hover to view descriptions of existing attributes.
|
|
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
2021-03-24 11:48:10 +03:00
|
|
|
{
|
|
|
|
"address": "TCP/IP address of process to be debugged",
|
|
|
|
"localRoot": "${workspaceFolder}",
|
|
|
|
"name": "Attach to Remote",
|
|
|
|
"port": 9229,
|
|
|
|
"remoteRoot": "Absolute path to the remote directory containing the program",
|
|
|
|
"request": "attach",
|
|
|
|
"skipFiles": [
|
|
|
|
"<node_internals>/**"
|
|
|
|
],
|
|
|
|
"type": "pwa-node"
|
|
|
|
},
|
2017-10-21 03:36:41 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Validate Spec",
|
2018-10-13 05:42:35 +03:00
|
|
|
"program": "${workspaceRoot}/dist/cli.js",
|
2017-10-21 03:36:41 +03:00
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"args": [
|
|
|
|
"validate-spec",
|
2018-12-03 22:15:31 +03:00
|
|
|
"../azure-rest-api-specs/specification/storage/resource-manager/Microsoft.Storage/stable/2018-07-01/blob.json"
|
2017-10-21 03:36:41 +03:00
|
|
|
],
|
|
|
|
"env": {}
|
|
|
|
},
|
2021-07-13 06:36:21 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Validate Traffic",
|
|
|
|
"program": "${workspaceRoot}/dist/cli.js",
|
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"args": [
|
|
|
|
"validate-traffic",
|
|
|
|
"${workspaceRoot}/test/liveValidation/payloads/test-validate-traffic.json",
|
|
|
|
"${workspaceRoot}/test/liveValidation/swaggers/specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/dns.json"
|
|
|
|
],
|
|
|
|
"env": {}
|
|
|
|
},
|
2017-10-21 03:36:41 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Validate example",
|
2018-10-13 05:42:35 +03:00
|
|
|
"program": "${workspaceRoot}/dist/cli.js",
|
2017-10-21 03:36:41 +03:00
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"args": [
|
|
|
|
"validate-example",
|
2019-03-08 03:42:07 +03:00
|
|
|
"C:/github.com/Azure/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/stable/2017-10-12/cdn.json",
|
2018-10-13 05:42:35 +03:00
|
|
|
"--pretty"
|
2017-10-21 03:36:41 +03:00
|
|
|
],
|
|
|
|
"env": {}
|
|
|
|
},
|
2019-01-15 03:44:53 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Validate Network examples",
|
|
|
|
"program": "${workspaceRoot}/dist/scripts/testNetwork.js",
|
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"env": {}
|
|
|
|
},
|
2018-09-18 21:49:56 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Extract example",
|
|
|
|
"program": "${workspaceRoot}/dist/cli.js",
|
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"args": [
|
|
|
|
"extract-xmsexamples",
|
|
|
|
"./test/xMsExamplesExtractor/databox.json",
|
|
|
|
"./test/xMsExamplesExtractor/SessionRecords"
|
|
|
|
],
|
|
|
|
"env": {}
|
|
|
|
},
|
2017-10-21 03:36:41 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Resolve Spec",
|
2018-09-25 23:19:56 +03:00
|
|
|
"program": "${workspaceRoot}/dist/cli.js",
|
2017-10-21 03:36:41 +03:00
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"args": [
|
|
|
|
"resolve-spec",
|
2018-09-25 23:19:56 +03:00
|
|
|
"-r",
|
|
|
|
"../azure-rest-api-specs/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/applicationGateway.json"
|
2017-10-21 03:36:41 +03:00
|
|
|
],
|
|
|
|
"env": {}
|
|
|
|
},
|
2018-09-27 00:20:05 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Model Validation",
|
|
|
|
"program": "${workspaceRoot}/dist/cli.js",
|
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"args": [
|
|
|
|
"validate-example",
|
|
|
|
"../azure-rest-api-specs/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimversionsets.json"
|
|
|
|
],
|
|
|
|
"env": {}
|
|
|
|
},
|
2017-12-04 21:42:00 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "generate uml",
|
|
|
|
"program": "${workspaceRoot}/cli.js",
|
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"args": [
|
|
|
|
"generate-uml",
|
|
|
|
"D:/sdk/azure-rest-api-specs-pr/specification/datamigration/resource-manager/Microsoft.DataMigration/2017-11-15-preview/datamigration.json"
|
|
|
|
],
|
|
|
|
"env": {}
|
|
|
|
},
|
2017-10-21 03:36:41 +03:00
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "generate wireformat",
|
|
|
|
"program": "${workspaceRoot}/cli.js",
|
|
|
|
"cwd": "${workspaceRoot}",
|
2019-03-20 20:46:05 +03:00
|
|
|
"args": ["generate-wireformat", "test/swaggers/arm-storage/2016-01-01/swagger/storage.json"],
|
2017-10-21 03:36:41 +03:00
|
|
|
"env": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Live Validator",
|
2018-07-26 03:55:59 +03:00
|
|
|
"program": "${workspaceRoot}/dist/test/sample",
|
|
|
|
"preLaunchTask": "tsc: build - tsconfig.json",
|
2017-10-21 03:36:41 +03:00
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"env": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
2019-03-20 20:46:05 +03:00
|
|
|
"name": "Jest All",
|
|
|
|
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
|
|
|
"args": ["--runInBand"],
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"internalConsoleOptions": "neverOpen",
|
|
|
|
"disableOptimisticBPs": true,
|
|
|
|
"windows": {
|
|
|
|
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Jest Current File",
|
|
|
|
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
2020-11-24 06:07:36 +03:00
|
|
|
"args": ["--runTestsByPath", "test/liveValidatorTests.ts", "--coverage", "false"],
|
2019-03-20 20:46:05 +03:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
"internalConsoleOptions": "neverOpen",
|
|
|
|
"disableOptimisticBPs": true,
|
|
|
|
"windows": {
|
|
|
|
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
|
|
|
|
}
|
2017-10-21 03:36:41 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "node",
|
|
|
|
"request": "attach",
|
|
|
|
"name": "Attach to Process",
|
2021-03-24 11:48:10 +03:00
|
|
|
"processId": "${command:PickProcess}"
|
2017-10-21 03:36:41 +03:00
|
|
|
}
|
|
|
|
]
|
2018-07-26 03:55:59 +03:00
|
|
|
}
|