{"repo":"APIDevTools/swagger-parser","free":true,"listed":false,"github":"https://github.com/APIDevTools/swagger-parser","clone":"git clone https://github.com/APIDevTools/swagger-parser.git","description":"Swagger 2.0 and OpenAPI 3.0 parser/validator","language":"JavaScript","stars":1206,"topics":["swagger","openapi","rest-api","json-schema","parser","resolver","validator","validation","nodejs","javascript"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Swagger 2.0 and OpenAPI 3.0 parser/validator Features - Parses Swagger specs in JSON or YAML format - Validates against the Swagger 2.0 schema or OpenAPI 3.0 Schema - Resolves all $ref pointers, including external files and URLs - Can bundle all your Swagger files into a single file that only has internal $ref pointers - Can dereference all $ref pointers, giving you a normal JavaScript object that's easy to work with - Tested in Node.js and all modern web browsers on Mac, Windows, and Linux - Tested on over 1,500 real-world APIs from Google, Microsoft, Facebook, Spotify, etc. - Supports circular references, nested references, back-references, and cross-references - Maintains object reference equality &mdash; $ref pointers to the same value always resolve to the same object instance Related Projects - Swagger CLI - Swagger Express Middleware Example Or use async / await or Promise syntax instead. The following example is the same as above: For more detailed examples, please see the API Documentation Installation Install using npm: Usage When using Swagger Parser in Node.js apps, you'll probably want to use CommonJS syntax: When using a transpiler such as Babel or TypeScript, or a bundler such as Webpack or Rollup, you can use ECMAScript modules syntax instead: Browser support Swagger Parser supports recent versions of every major web browser. Older browsers may require Babel and/or polyfills. To use Swagger Parser in a browser, you'll need to use a bundling tool such as Webpac","default_branch":null,"files":null,"tree":[],"storefront":"/r/APIDevTools","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/APIDevTools/swagger-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}