oav (openapi-validation-tools) is a CLI and library for validating Azure REST API specifications written in OpenAPI 2.0 (Swagger) format. Current stable version: 4.0.4. Release cadence is periodic, driven by Azure SDK tooling needs. Key differentiators: it provides semantic validation of spec structures, model validation for request/response examples, traffic validation against recordings, and example quality checks. Built specifically for Azure spec conformance, it supports x-ms-examples and integrates with Azure test-proxy recordings. Requires Node.js >=18, ships TypeScript types, and is primarily used in CI/CD pipelines for Azure SDK repos.
npm install oavNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Validates an Azure OpenAPI spec and its x-ms-examples using async API. Shows import pattern and basic usage.
Switch to import syntax or use dynamic import() in CommonJS modules.
Upgrade Node.js to v18 or higher.
Use JavaScript/TypeScript API instead of CLI for spec validation.
Use path.resolve() or path.join(__dirname, ...) for Linux compatibility.
Use JSON.stringify with custom replacer or utility library for logging.
Run 'npm install oav' in your project directory (not globally for programmatic use).
Use import { validateSpec } from 'oav' instead of import oav from 'oav'.Add "type": "module" in package.json or use .mjs extension. Or use dynamic import() inside CommonJS.
Upgrade Node.js to v18 or later (e.g., via nvm).
No dependency data recorded yet.