Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Fastapi | 62,827 | 138 | 2,219 | 16 hours ago | 175 | July 27, 2023 | 519 | mit | Python | |
FastAPI framework, high performance, easy to learn, fast to code, ready for production | ||||||||||
Swagger Ui | 24,478 | 1,622 | 370 | 2 days ago | 251 | July 24, 2023 | 999 | apache-2.0 | JavaScript | |
Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API. | ||||||||||
Redoc | 20,976 | 112 | 82 | 3 days ago | 217 | September 13, 2022 | 318 | mit | TypeScript | |
📘 OpenAPI/Swagger-generated API Reference Documentation | ||||||||||
Grpc Gateway | 16,058 | 6,619 | a day ago | 395 | July 28, 2023 | 115 | bsd-3-clause | Go | ||
gRPC to JSON proxy generator following the gRPC HTTP spec | ||||||||||
Swagger Codegen | 15,982 | 31 | 6 | 2 days ago | 45 | May 17, 2023 | 3,378 | apache-2.0 | Mustache | |
swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition. | ||||||||||
Full Stack Fastapi Postgresql | 12,908 | 13 days ago | 230 | mit | Python | |||||
Full stack, modern web application generator. Using FastAPI, PostgreSQL as database, Docker, automatic HTTPS and more. | ||||||||||
Go Swagger | 8,863 | 54 | 194 | 17 days ago | 91 | June 10, 2023 | 625 | apache-2.0 | Go | |
Swagger 2.0 implementation for go | ||||||||||
Swag | 8,832 | 74 | 1,200 | 2 days ago | 140 | May 04, 2023 | 264 | mit | Go | |
Automatically generate RESTful API documentation with Swagger 2.0 for Go. | ||||||||||
Swagger Editor | 8,342 | 135 | 37 | 3 days ago | 317 | August 04, 2023 | 216 | apache-2.0 | JavaScript | |
Swagger Editor | ||||||||||
Swagger Core | 7,262 | 310 | 234 | 3 days ago | 39 | May 15, 2023 | 755 | apache-2.0 | Java | |
Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API |
$ref
pointers, including external files and URLs$ref
pointers$ref
pointers, giving you a normal JavaScript object that's easy to work with$ref
pointers to the same value always resolve to the same object instanceSwaggerParser.validate(myAPI, (err, api) => {
if (err) {
console.error(err);
}
else {
console.log("API name: %s, Version: %s", api.info.title, api.info.version);
}
});
Or use async
/await
or Promise syntax instead. The following example is the same as above:
try {
let api = await SwaggerParser.validate(myAPI);
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
Install using npm:
npm install @apidevtools/swagger-parser
When using Swagger Parser in Node.js apps, you'll probably want to use CommonJS syntax:
const SwaggerParser = require("@apidevtools/swagger-parser");
When using a transpiler such as Babel or TypeScript, or a bundler such as Webpack or Rollup, you can use ECMAScript modules syntax instead:
import * as SwaggerParser from '@apidevtools/swagger-parser';
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 Webpack, Rollup, Parcel, or Browserify. Some bundlers may require a bit of configuration, such as setting browser: true
in rollup-plugin-resolve.
Full API documentation is available right here
I welcome any contributions, enhancements, and bug-fixes. Open an issue on GitHub and submit a pull request.
To build/test the project locally on your computer:
Clone this repo
git clone https://github.com/APIDevTools/swagger-parser.git
Install dependencies
npm install
Run the build script
npm run build
Run the tests
npm test
Check the code coverage
npm run coverage
Swagger Parser is 100% free and open-source, under the MIT license. Use it however you want.
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest youll be creating employment for local families and restoring wildlife habitats.
Thanks to these awesome companies for their support of Open Source developers