Azure / autorest.java

Extension for AutoRest (https://github.com/Azure/autorest) that generates Java code
MIT License
32 stars 80 forks source link

tsp, code-model to include x-ms-original-file #2788

Closed weidongxu-microsoft closed 1 month ago

weidongxu-microsoft commented 1 month ago

Emm... it's local path, if run tsp-client update.

+    /*
+     * x-ms-original-file:
+     * file:///C:/github/azure-sdk-for-java/sdk/standbypool/azure-resourcemanager-standbypool/TempTypeSpecFiles/
+     * StandbyPool.Management/examples/2023-12-01-preview/StandbyVirtualMachinePools_Update.json
+     */

I may need to load the tsp-location for the directory to make it e.g.

specification/standbypool/StandbyPool.Management/examples/2023-12-01-preview/StandbyVirtualMachinePools_Update.json
weidongxu-microsoft commented 1 month ago

samples-automation would need another process to map it to the JSON that refers from Swagger, e.g.

specification/standbypool/resource-manager/Microsoft.StandbyPool/preview/2023-12-01-preview/examples/StandbyVirtualMachinePools_Update.json

(as mslearn still parses Swagger, not TypeSpec)