- 
                Notifications
    You must be signed in to change notification settings 
- Fork 50
Home
        Mike Harder edited this page Aug 15, 2025 
        ·
        8 revisions
      
    From root of azure-rest-api-specs repo:
npm ci
npm exec -- autorest \
  --level=warning \
  --v3 --spectral --azure-validator --semantic-validator=false --model-validator=false \
  --use=$(pwd)/node_modules/@microsoft.azure/openapi-validator \
  --openapi-type=arm --openapi-subtype=arm \
  --tag=package-2021-11-01 \
  specification/widget/resource-manager/Microsoft.Widget/Widget/readme.md
npm exec -- autorest \
  --level=warning \
  --v3 --spectral --azure-validator --semantic-validator=false --model-validator=false \
  --use=$(pwd)/node_modules/@microsoft.azure/openapi-validator \
  --openapi-type=data-plane \
  --tag=package-2022-12-01 \
  specification/widget/data-plane/WidgetAnalytics/readme.md
Via the --use argument, autorest should execute the versions of @microsoft.azure/openapi-validator* packages in your specs/node_modules folder.  If you want to test a different version of a package, just update the version in package.json and run npm i.