The following Swagger causes LintDiff to crash with a fatal error:

The error is:
openapiValidatorPluginFunc: Failed validating:TypeError: Cannot read property 'toLowerCase' of undefined Location
Here's the failing CI run:
https://github.com/Azure/azure-rest-api-specs/pull/27356/checks?check_run_id=20396982945
Per the specification for x-ms-enum, name is an optional field, so any rule that is operating on x-ms-enum needs to have appropriate logic. In this case, the rule seems to be assuming name exists and calling toLowerCase on it, resulting in the fatal crash.
The following Swagger causes LintDiff to crash with a fatal error:

The error is:
openapiValidatorPluginFunc: Failed validating:TypeError: Cannot read property 'toLowerCase' of undefined LocationHere's the failing CI run:
https://github.com/Azure/azure-rest-api-specs/pull/27356/checks?check_run_id=20396982945
Per the specification for x-ms-enum,
nameis an optional field, so any rule that is operating onx-ms-enumneeds to have appropriate logic. In this case, the rule seems to be assuming name exists and callingtoLowerCaseon it, resulting in the fatal crash.