@sdk-it/generic 0.13.0 → 0.14.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 +4 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  This package provides tools to analyze TypeScript code and generate OpenAPI specifications from it. It can extract route information, parameter types, and response schemas from your TypeScript codebase.
6
6
 
7
- ## Integration with Other Frameworks
7
+ ## Frameworks specific integrations
8
8
 
9
9
  - [hono](../hono/README.md)
10
10
 
@@ -23,7 +23,7 @@ Consider the following example:
23
23
  ```typescript
24
24
  import z from 'zod';
25
25
 
26
- import { validate } from '@sdk-it/express';
26
+ import { validate } from '@sdk-it/express/runtime';
27
27
 
28
28
  const app = express();
29
29
 
@@ -39,9 +39,9 @@ app.get(
39
39
  against: z.string(),
40
40
  },
41
41
  })),
42
- async (c) => {
42
+ async (req, res) => {
43
43
  const author = [{ name: 'John Doe' }];
44
- return c.json(author);
44
+ return res.json(author);
45
45
  },
46
46
  );
47
47
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdk-it/generic",
3
- "version": "0.13.0",
3
+ "version": "0.14.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "!**/*.tsbuildinfo"
22
22
  ],
23
23
  "dependencies": {
24
- "@sdk-it/core": "0.13.0",
24
+ "@sdk-it/core": "0.14.2",
25
25
  "stringcase": "^4.3.1",
26
26
  "typescript": "^5.7.2",
27
27
  "debug": "^4.4.0",