@minisylar/express-typed-router 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@ Define routes once, infer `params` / `body` / `query`, and generate a clean API
6
6
 
7
7
  ---
8
8
 
9
- ![Scalar UI showing typed routes with request body schemas, enum values, and live response examples](https://github-production-user-asset-6210df.s3.amazonaws.com/75648051/600638539-d3ac3913-0347-47fd-a370-fb1ab8136ff7.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20260531%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260531T183343Z&X-Amz-Expires=300&X-Amz-Signature=660c354ad82fd84bb109455957fcdc6572e62cfde2fe5570241c06f5ff25f463&X-Amz-SignedHeaders=host&response-content-type=image%2Fpng)
9
+ ![Scalar UI showing typed routes with request body schemas, enum values, and live response examples](https://raw.githubusercontent.com/Mini-Sylar/express-typed-router/main/docs/docsScreenshot.png)
10
10
 
11
11
  ## Documentation generated from your codebase
12
12
 
@@ -255,11 +255,14 @@ For TypeScript projects, [openapi-typescript](https://github.com/openapi-ts/open
255
255
  **1. Enable spec output:**
256
256
 
257
257
  ```ts
258
- app.use("/docs", router.docs({
259
- title: "My API",
260
- version: "1.0.0",
261
- specOutputPath: "./openapi.json", // written automatically on every server start
262
- }));
258
+ app.use(
259
+ "/docs",
260
+ router.docs({
261
+ title: "My API",
262
+ version: "1.0.0",
263
+ specOutputPath: "./openapi.json", // written automatically on every server start
264
+ }),
265
+ );
263
266
  ```
264
267
 
265
268
  **2. Add the scripts to your `package.json`:**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minisylar/express-typed-router",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "A strongly-typed Express router with Zod validation and automatic type inference for params, body, query, and middleware",
5
5
  "type": "module",
6
6
  "main": "dist/schema-router.cjs",