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

npmnpm install @apidevtools/swagger-parser
pnpmpnpm add @apidevtools/swagger-parser
yarnyarn add @apidevtools/swagger-parser

Methods

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.

Verification notes

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.