{"library":"oas-validator","type":"library","category":null,"description":"oas-validator is a JavaScript library designed for parsing and validating OpenAPI 3.x definitions. The current stable version is 5.0.8. It operates as an assertion-based validator, meaning it ceases validation upon encountering the first structural error, which is crucial for preventing a cascade of spurious errors. However, it also offers a 'lint' option to report multiple warnings for non-critical issues. Key differentiators include its internal use of `reftools` for JSON Pointer and Reference resolution, a transition from older implementations like `jgeXml`. The library supports both Promise-based and callback-based asynchronous usage patterns, catering to different integration preferences. Its primary use case is ensuring the correctness and adherence to the OpenAPI specification of API definitions, often integrated into CI/CD pipelines or development tooling.","language":"javascript","status":"active","version":"5.0.8","tags":["javascript","openapi","oas","parser","validator","validation"],"install":[{"cmd":"npm install oas-validator","imports":["import validator from 'oas-validator';\n// Then use validator.validate(openapi, options);","const validator = require('oas-validator');\n// Then use validator.validate(openapi, options);","import type { Options as ValidationOptions } from 'oas-validator';"]},{"cmd":"yarn add oas-validator","imports":[]},{"cmd":"pnpm add oas-validator","imports":[]}],"homepage":null,"github":"https://github.com/Mermade/oas-kit","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/oas-validator","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/oas-validator/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}