vona-module-a-openapi 5.0.51 → 5.0.53
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
CHANGED
|
@@ -833,11 +833,11 @@ function schemaSerializerExclude(param) {
|
|
|
833
833
|
});
|
|
834
834
|
};
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function schemaSerializerReplace(options) {
|
|
837
837
|
return function (schema) {
|
|
838
838
|
return schema.openapi({
|
|
839
839
|
serializerTransforms: {
|
|
840
|
-
'a-serialization:
|
|
840
|
+
'a-serialization:replace': options
|
|
841
841
|
}
|
|
842
842
|
});
|
|
843
843
|
};
|
|
@@ -986,7 +986,7 @@ const v = {
|
|
|
986
986
|
captcha: schemaCaptcha,
|
|
987
987
|
serializerExclude: schemaSerializerExclude,
|
|
988
988
|
serializerTransform: schemaSerializerTransform,
|
|
989
|
-
|
|
989
|
+
serializerReplace: schemaSerializerReplace,
|
|
990
990
|
serializerGetter: schemaSerializerGetter,
|
|
991
991
|
serializerCustom: schemaSerializerCustom,
|
|
992
992
|
// openapi
|
|
@@ -3,7 +3,7 @@ import type z from 'zod';
|
|
|
3
3
|
export declare function schemaSerializerTransform<T extends keyof ISerializerTransformRecord>(serializerTransformName: T, options?: Partial<ISerializerTransformRecord[T]>): (schema: z.ZodType) => z.ZodType;
|
|
4
4
|
export declare function schemaSerializerExclude(options: Partial<ISerializerTransformOptionsExclude>): any;
|
|
5
5
|
export declare function schemaSerializerExclude(exclude?: boolean): any;
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function schemaSerializerReplace(options: ISerializerTransformRecord['a-serialization:replace']): (schema: z.ZodType) => z.ZodType;
|
|
7
7
|
export declare function schemaSerializerGetter(options: Partial<ISerializerTransformOptionsGetter>): any;
|
|
8
8
|
export declare function schemaSerializerGetter(getter: TypeSerializerTransformGetter): any;
|
|
9
9
|
export declare function schemaSerializerCustom(options: Partial<ISerializerTransformOptionsCustom>): any;
|
package/dist/lib/schema/v.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { schemaCaptcha, schemaEmail, schemaIPv4, schemaIPv6, schemaLowercase, schemaMax, schemaMin, schemaRegex, schemaTableIdentity, schemaToLowerCase, schemaToUpperCase, schemaTrim, schemaUppercase, schemaUrl, schemaUuid } from './v/helpers.ts';
|
|
2
2
|
import { schemaDescription, schemaExample, schemaOpenapi, schemaTitle } from './v/openapi.ts';
|
|
3
|
-
import { schemaSerializerCustom, schemaSerializerExclude, schemaSerializerGetter,
|
|
3
|
+
import { schemaSerializerCustom, schemaSerializerExclude, schemaSerializerGetter, schemaSerializerReplace, schemaSerializerTransform } from './v/serializer.ts';
|
|
4
4
|
import { schemaArray, schemaDefault, schemaLazy, schemaLooseObject, schemaObject, schemaOptional, schemaRequired, schemaStrictObject } from './v/system.ts';
|
|
5
5
|
import { schemaZodRefine, schemaZodTransform } from './v/zod.ts';
|
|
6
6
|
export declare const v: {
|
|
@@ -29,7 +29,7 @@ export declare const v: {
|
|
|
29
29
|
captcha: typeof schemaCaptcha;
|
|
30
30
|
serializerExclude: typeof schemaSerializerExclude;
|
|
31
31
|
serializerTransform: typeof schemaSerializerTransform;
|
|
32
|
-
|
|
32
|
+
serializerReplace: typeof schemaSerializerReplace;
|
|
33
33
|
serializerGetter: typeof schemaSerializerGetter;
|
|
34
34
|
serializerCustom: typeof schemaSerializerCustom;
|
|
35
35
|
openapi: typeof schemaOpenapi;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-module-a-openapi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.53",
|
|
5
5
|
"title": "a-openapi",
|
|
6
6
|
"vonaModule": {
|
|
7
7
|
"capabilities": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
|
-
"
|
|
35
|
-
"
|
|
34
|
+
"assets",
|
|
35
|
+
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@cabloy/zod-openapi": "^1.0.3",
|