生成 C# 代码 voor TSI API 时出现异常。
git clone https://github.com/Azure-Samples/Azure-Time-Series-Insights.git cd Azure-Time-Series-Insights\csharp-tsi-preview-sample\DataPlaneClient .\GenerateCode.bat
AutoRest code generation utility [cli version: 3.0.6187; node: v12.16.3, max-memory: 8192 gb]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
NOTE: AutoRest core version selected from configuration: ~2.0.4413.
Loading AutoRest core 'C:\Users\michelh\.autorest\@microsoft.azure_autorest-core@2.0.4417\node_modules\@microsoft.azure\autorest-core\dist' (2.0.4417)
Loading AutoRest extension '@microsoft.azure/autorest.csharp' (~2.3.79->2.3.84)
Loading AutoRest extension '@microsoft.azure/classic-openapi-validator' (~1.0.9->1.0.14)
Loading AutoRest extension '@microsoft.azure/openapi-validator' (~1.0.2->1.0.4)
Loading AutoRest extension 'oav' (~0.4.20->0.4.70)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.55->2.3.55)
VERBOSE: Validating 'file:///C:/source/experimental/azure/p2/Azure-Time-Series-Insights/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json'
VERBOSE: Validating 'swagger-document'
TypeError: jsonPath.nodes is not a function
at openApiValidationExample (C:\Users\michelh\.autorest\oav@0.4.70\node_modules\oav\dist\lib\autorestPlugin\extension.js:75:40)
at async analyzeSwagger (C:\Users\michelh\.autorest\oav@0.4.70\node_modules\oav\dist\lib\autorestPlugin\extension.js:34:38)
at async C:\Users\michelh\.autorest\oav@0.4.70\node_modules\oav\dist\lib\autorestPlugin\extension.js:48:70
at async Promise.all (index 0)
at async C:\Users\michelh\.autorest\oav@0.4.70\node_modules\oav\dist\lib\autorestPlugin\extension.js:49:5
at async C:\Users\michelh\.autorest\oav@0.4.70\node_modules\@microsoft.azure\autorest-extension-base\dist\lib\extension-base.js:39:17
FATAL: TypeError: jsonPath.nodes is not a function
FATAL: swagger-document/model-validator - FAILED
FATAL: Error: Plugin model-validator reported failure.
Process() cancelled due to exception : Plugin model-validator reported failure.
Error: Plugin model-validator reported failure.