API Reference
@apidevtools/swagger
- Supports circular references, nested references, back-references, and cross-references - Maintains object reference equality — $ref pointers to the…
Official Documentation ↗CompatibilityThis documentation covers version
v10.0. Check the official docs for the latest API surface.Installation
npm
npm install @apidevtools/swagger-parserpnpm
pnpm add @apidevtools/swagger-parseryarn
yarn add @apidevtools/swagger-parserMethods
No methods match this filter.
Overview
- Supports circular references, nested references, back-references, and cross-references - Maintains object reference equality — $ref pointers to the same value always re The following example is the same as above: try { console.log(“API name: %s, Version: %s”, api.info.title, api.info.version); } catch (err) { console.error(err); } For more detailed examples, please see the [API Documentation](https://apide
API reference status
This page lists only entry points that appear verbatim in the official README examples: validate, error. Parameter and return types are not given by the official README, so signatures are marked unverified.
Security notes
Quoted verbatim from the official documentation; this is not a complete threat model. 来源:https://cdn.jsdelivr.net/gh/APIDevTools/swagger-parser@latest/README.md · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:48:09.659Z.
- API Documentation Full API documentation is available right here ## Security The library, by default, attempts to resolve any files referenced using $ref, without considering file extensions or the location of the files. (https://cdn.jsdelivr.net/gh/APIDevTools/swagger-parser@latest/README.md)
- Developers must be cautious when working with documents from untrusted sources. (https://cdn.jsdelivr.net/gh/APIDevTools/swagger-parser@latest/README.md)
Verification notes
- Official source: https://github.com/APIDevTools/swagger-parser
- Evidence: https://cdn.jsdelivr.net/gh/APIDevTools/swagger-parser@latest/README.md
- Checked on 2026-11-04 by
scripts/phase11/build-api-profiles.mjs
FAQ
- What does @apidevtools/swagger-parser do?
- - Supports circular references, nested references, back-references, and cross-references - Maintains object reference equality — $ref pointers to the same value always re
- How do I install @apidevtools/swagger-parser?
- Run `npm install @apidevtools/swagger-parser`.
- Where can I verify the API details?
- Official repository/documentation: https://github.com/APIDevTools/swagger-parser. Checked on 2026-11-04; signatures and return values not stated in the official README are marked unverified.
Report a problem with this API docOpens a pre-filled issue on GitHub.