There are a number of rules that can be validated with AutoRest. The current set of rules is focused on Azure Resource Management (ARM) specs and its applicable rules.
Run
autorest -CodeGenerator None -Input <path-to-spec>
if you'd like the output to be in Json format please use the following flag:
-JsonValidationMessages true