express-endpoints-collection 1.0.1 → 1.0.2

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 +15 -19
  2. package/package.json +19 -1
package/README.md CHANGED
@@ -12,16 +12,16 @@ You can configure exposed endpoints, request and response schemas, and validatio
12
12
 
13
13
  ## Features
14
14
 
15
- * Fully typed endpoints (TypeScript hints and checks)
16
- * Request body
17
- * Response body
18
- * Query parameters
19
- * Path parameters
20
- * Headers
21
- * Automatic OpenAPI 3 schema generation
22
- * Request and response validation using Zod
23
- * Middleware support
24
- * Minimal setup
15
+ - Fully typed endpoints (TypeScript hints and checks)
16
+ - Request body
17
+ - Response body
18
+ - Query parameters
19
+ - Path parameters
20
+ - Headers
21
+ - Automatic OpenAPI 3 schema generation
22
+ - Request and response validation using Zod
23
+ - Middleware support
24
+ - Minimal setup
25
25
 
26
26
  ## Installation
27
27
 
@@ -128,7 +128,7 @@ paths:
128
128
  - a
129
129
  - b
130
130
  responses:
131
- '200':
131
+ "200":
132
132
  description: Response for status code 200
133
133
  content:
134
134
  application/json:
@@ -171,10 +171,7 @@ or as JSON
171
171
  "type": "number"
172
172
  }
173
173
  },
174
- "required": [
175
- "a",
176
- "b"
177
- ]
174
+ "required": ["a", "b"]
178
175
  }
179
176
  }
180
177
  }
@@ -191,9 +188,7 @@ or as JSON
191
188
  "type": "number"
192
189
  }
193
190
  },
194
- "required": [
195
- "result"
196
- ]
191
+ "required": ["result"]
197
192
  }
198
193
  }
199
194
  }
@@ -216,4 +211,5 @@ Type inference and checks:
216
211
  ![infer1](./img/infer1.png)
217
212
 
218
213
  ### License
219
- MIT
214
+
215
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-endpoints-collection",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "./dist/index.js",
5
5
  "repository": "https://github.com/pilotpirxie/express-endpoints-collection.git",
6
6
  "author": "pilotpirxie <10637666+pilotpirxie@users.noreply.github.com>",
@@ -30,5 +30,23 @@
30
30
  },
31
31
  "files": [
32
32
  "dist"
33
+ ],
34
+ "engines": {
35
+ "node": ">=18.0.0"
36
+ },
37
+ "keywords": [
38
+ "express",
39
+ "endpoints",
40
+ "collection",
41
+ "api",
42
+ "rest",
43
+ "restful",
44
+ "openapi",
45
+ "swagger",
46
+ "zod",
47
+ "typescript",
48
+ "ts",
49
+ "validation",
50
+ "inference"
33
51
  ]
34
52
  }