vona-module-a-openapiutils 5.0.4 → 5.0.5
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/dist/index.js +1 -1
- package/dist/types/api.d.ts +1 -1
- package/dist/types/decorator.d.ts +2 -1
- package/package.json +1 -4
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ function setPublic(target, prop, _descriptor, value) {
|
|
|
15
15
|
options.public = value;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
// not use z.
|
|
18
|
+
// not use z.ZodType
|
|
19
19
|
|
|
20
20
|
const SymbolDecoratorRule = Symbol('SymbolDecoratorRule');
|
|
21
21
|
const SymbolDecoratorRuleColumn = Symbol('SymbolDecoratorRuleColumn');
|
package/dist/types/api.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface IOpenApiOptions {
|
|
|
28
28
|
summary?: string;
|
|
29
29
|
httpCode?: number;
|
|
30
30
|
contentType?: TypeResponseContentType;
|
|
31
|
-
bodySchema?: z.
|
|
31
|
+
bodySchema?: z.ZodType;
|
|
32
32
|
bodySchemaWrapper?: SchemaLikeCreate | false;
|
|
33
33
|
exclude?: boolean;
|
|
34
34
|
tags?: string[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Constructable } from 'vona';
|
|
2
2
|
import type z from 'zod';
|
|
3
3
|
export type SchemaLikeCreate = (schema: any) => any;
|
|
4
|
-
export type SchemaLike = SchemaLikeCreate | z.
|
|
4
|
+
export type SchemaLike<T = unknown> = SchemaLikeCreate | z.ZodType<T> | Constructable;
|
|
5
|
+
export type TypeDecoratorRules = Record<string, z.ZodType | undefined>;
|
|
5
6
|
export declare const SymbolDecoratorRule: unique symbol;
|
|
6
7
|
export declare const SymbolDecoratorRuleColumn: unique symbol;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-module-a-openapiutils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.5",
|
|
5
5
|
"title": "a-openapiutils",
|
|
6
6
|
"vonaModule": {
|
|
7
7
|
"dependencies": {}
|
|
@@ -25,9 +25,6 @@
|
|
|
25
25
|
"dist",
|
|
26
26
|
"static"
|
|
27
27
|
],
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"openapi3-ts": "^4.4.0"
|
|
30
|
-
},
|
|
31
28
|
"scripts": {
|
|
32
29
|
"clean": "rimraf dist tsconfig.build.tsbuildinfo",
|
|
33
30
|
"tsc:publish": "npm run clean && vona :bin:buildModule && tsc -p tsconfig.build.json"
|