Closed erich-wang closed 3 years ago
Also present in Cognitive Services Common:
Error: $ref to original location 'https://github.com/Azure/azure-rest-api-specs/blob/d9cf7c7ed3d674ebd482836e82b274014245ae67/specification/cognitiveservices/data-plane/Common/Parameters.json#/components/parameters/ImageUrl' is not found in the new refs collection
Also reported by @jianghaolu in issue Azure/autorest.modelerfour#308 when generating Cognitive Services Face:
autorest --use=@autorest/java@4.0.0 https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/data-plane/Face/readme.md --java.output-folder=/Users/jianghlu/Documents/code/azure-sdk-for-java/sdk/faceapi/azure-ai-faceapi --java.namespace=com.azure.ai.faceapi
AutoRest code generation utility [cli version: 3.0.6187; node: v10.16.1, max-memory: 8192 gb]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/Users/jianghlu/.autorest/@autorest_core@3.0.6282/node_modules/@autorest/core/dist' (3.0.6282)
Loading local AutoRest extension '@autorest/java' (/Users/jianghlu/Documents/code/autorest.java.v3)
Loading local AutoRest extension '@autorest/java.vanilla' (/Users/jianghlu/Documents/code/autorest.java.v3/javagen)
Loading local AutoRest extension '@autorest/java.preprocessor' (/Users/jianghlu/Documents/code/autorest.java.v3/javagen/../preprocessor)
Loading AutoRest extension '@autorest/modelerfour' (4.13.309->4.13.309)
Error: $ref to original location 'file:///Users/jianghlu/Documents/code/azure-rest-api-specs/specification/cognitiveservices/data-plane/Common/Parameters.json#/components/parameters/ImageUrl' is not found in the new refs collection
We'll have to ship a new version of AutoRest Core before this fix will be available, I'll try to get this done today.
Fix is out in @autorest/core 3.0.6339, you can get it by using autorest --reset