ts-class-to-openapi 1.4.3 → 1.4.4
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.
- package/README.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# 🔄 ts-class-to-openapi
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/ts-class-to-openapi) [](https://www.npmjs.com/package/ts-class-to-openapi)
|
|
4
|
+
|
|
3
5
|
✨ **Transform TypeScript classes into OpenAPI 3.1.0 schemas**
|
|
4
6
|
|
|
5
7
|
A robust and efficient library that automatically transforms TypeScript classes into OpenAPI-compatible schemas. Compatible with **pure TypeScript classes** and **class-validator decorated classes**.
|
|
@@ -28,7 +30,7 @@ class User {
|
|
|
28
30
|
|
|
29
31
|
const schema = transform(User)
|
|
30
32
|
|
|
31
|
-
console.log(JSON.stringify(
|
|
33
|
+
console.log(JSON.stringify(schema), null, 2)
|
|
32
34
|
```
|
|
33
35
|
|
|
34
36
|
**Generated output:**
|
package/package.json
CHANGED