Closed konrad-jamrozik closed 7 months ago
Contributes to:
When I locally injected a failure of invalid call toLowerCase() into the native legacy rule of UniqueXmsEnumName.ts I got:
toLowerCase()
UniqueXmsEnumName.ts
fatal | openapiValidatorPluginFunc: Failed validating: TypeError: azure-openapi-validator/core/src/runner.ts/LintRunner.runRules/processRule error. ruleName: UniqueXmsEnumName, specFilePath: file:///C:/Users/username/repos/specs/specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/privatelinks.json, jsonPath: definitions, errorName: TypeError, errorMessage: Cannot read properties of undefined (reading 'toLowerCase')
Full local execution setup:
$use="C:/Users/username/repos/aov/packages/azure-openapi-validator/autorest" $apiVersion="package-2023-01" $autorestConfigFile="C:/Users/username/repos/specs/specification/storage/resource-manager/readme.md" autorest --v3 --azure-validator --use=$use --tag=$apiVersion $autorestConfigFile
Pull Request 547487: Update LINT_VERSION to 2.2.1
Contributes to:
When I locally injected a failure of invalid call
toLowerCase()
into the native legacy rule ofUniqueXmsEnumName.ts
I got:Full local execution setup: