Extension for AutoRest (https://github.com/Azure/autorest) that generates TypeScript code. The transpiled javascript code is isomorphic. It can be run in browser and in node.js environment.
MIT License
176
stars
75
forks
source link
[domainservices] fail to build the code after generate it with @autorest/typescript@6.0.0-beta.13 #1225
Here's the autorest command I am using:
autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/Users/zhangqiaoqiao/work/code/azure-sdk-for-js ../azure-rest-api-specs/specification/domainservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.13
Here's the result I am getting while running rush build
This is probably because their swagger has operationId prefixes both OuContainerOperations_x and OuContainer_x
And code generator will name the operation class as operationId prefix + Operations which is conflict with OuContainerOperations_x
Here's the autorest command I am using:
autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/Users/zhangqiaoqiao/work/code/azure-sdk-for-js ../azure-rest-api-specs/specification/domainservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.13
Here's the result I am getting while running
rush build
This is probably because their swagger has operationId prefixes both
OuContainerOperations_x
andOuContainer_x
And code generator will name the operation class as operationId prefix +Operations
which is conflict withOuContainerOperations_x