express-openapi-validator
JSDoc
Our great sponsors
express-openapi-validator | JSDoc | |
---|---|---|
6 | 67 | |
862 | 14,742 | |
- | 0.8% | |
8.0 | 9.3 | |
27 days ago | 6 days ago | |
TypeScript | JavaScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
express-openapi-validator
-
NodeJS API Documentation
The build step is where I put all of them together, which is the messy and tricky part. Although not directly related to your question, I also use this validation tool to handle request validation based on my result yml.
-
A minimalist backend REST API in NodeJS
express-openapi-validator Express middleware that routes and validates requests according to an OpenAPI spec.
- Automatically validate requests, responses, and auth with OpenAPI 3 and ExpressJS
-
Adding request and response validation to your Express REST API
The express-openapi-validator package addresses this issue by validating requests and responses based on a provided OpenAPI spec. Having our responses validated in addition to just the requests will be a good idea as that will ensure the API code always responds in the expected schema.
- koa-openapi-validator: automatically validate requests with koa and openapi 3 (beta prerelease)
- New year new features: Automatically validate requests, responses with OpenAPI 3 and ExpressJS
JSDoc
-
Eloquent JavaScript 4th edition (2024)
I wholeheartedly agree. At most, I introduce JSDoc[1] to newer developers as standardising how parameters and whatnot are commented at least gets you better documentation and _some_ safety without adding any TS knowledge overhead.
[1] https://jsdoc.app/
-
Learn how to document JavaScript/TypeScript code using JSDoc & Typedoc
This is where JSDoc comes to save the day.
-
Add typing to your Javascript code (without Typescript, kinda) ✍🏼
The best way to do this, of course, is with JSDoc. But something I always found awkward about jsdoc is defining the object types in the same file. So, after a lot of reading, I found a way to combine JSDoc with declaration type files from Typescript. Let me give you an example:
-
What is JSDoc and why you may not need typescript for your next project?
There is a lot of specific symbols presented on the JSDOC specification that can be found here: https://jsdoc.app
-
TypeScript Might Not Be Your God: Case Study of Migration from TS to JSDoc
JSDoc is a specification for the comment format in JavaScript. This specification allows developers to describe the structure of their code, data types, function parameters, and much more using special comments. These comments can then be transformed into documentation using appropriate tools.
-
Adding a search feature to my app
Working with new features, frameworks, and tools, the experience of reading documentation is a critical part of it. I have been lucky to work with projects that feature really easy to read documentation such as USWDS and Bun, but I've also had the misfortune to work with pretty terrible documentation like JSDoc. The JSDoc documentation lacks a search field which makes searching for specific items an ordeal and also does not cover many hidden use cases. It provides less than the bare minimum for what it needs to do - a lot of the time I am forced to rely on external user documentation elsewhere to use JSDoc effectively. That was why I was drawn to the search field in particular in Docusaurus.
-
JavaScript First, Then TypeScript
The Svelte team followed suit but motivated by the maintainer's developer experience as they migrated the project away from TypeScript in favor of plain JSDoc comments for type annotations instead.
-
No comments. Now what?
Even more relevant, tools like Javadoc, JSDoc, Doxygen, etc. read comments in a specific format to generate documentation. These comments do not affect readability. On the contrary, Javadocs are great for explaining how to use these entities. Combined with tools like my dear Doctest, we even get guarantees of accuracy and correctness!
-
The Complete 2023 Guide to Learning TypeScript - From Beginner to Advanced
Document types with JSDoc annotations
-
My opinionated JavaScript package template repository - zero config, start immediately
📚 JSDoc for documentation and jsdoc-to-markdown to create docs as markdown files
What are some alternatives?
swagger-jsdoc - Generates swagger/openapi specification based on jsDoc comments and YAML files.
ESDoc - ESDoc - Good Documentation for JavaScript
redoc - 📘 OpenAPI/Swagger-generated API Reference Documentation
documentation.js - :book: documentation for modern JavaScript
mockoon - Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Docusaurus - Easy to maintain open source documentation websites.
routing-controllers-openapi - Runtime OpenAPI v3 schema generation for routing-controllers.
apiDoc - RESTful web API Documentation Generator.
generator-express-no-stress - 🚂 A Yeoman generator for Express.js based 12-factor apps and apis
YUIDoc - YUI Javascript Documentation Tool
zod-express-middleware - Express middleware to validate requests using zod schema's.
storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.