zod-openapi 5.0.0-beta.6 → 5.0.0-beta.7
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/api.d.mts +2 -8
- package/dist/api.d.ts +2 -8
- package/dist/api.js +3 -3
- package/dist/api.mjs +3 -3
- package/dist/{components-CXjVnBr-.js → components-BaA49bb2.js} +0 -6
- package/dist/{components-CvutxtFV.mjs → components-DMRr6ft0.mjs} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/api.d.mts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { ComponentRegistry,
|
|
1
|
+
import { ComponentRegistry, Override, ParameterLocation, ParameterObject, ReferenceObject, createComponents, createRegistry, isAnyZodType } from "./components-DAYTA1Um.mjs";
|
|
2
2
|
import { $ZodObject, $ZodType, $ZodTypes } from "zod/v4/core";
|
|
3
3
|
|
|
4
|
-
//#region src/create/content.d.ts
|
|
5
|
-
declare const createMediaTypeObject: (mediaTypeObject: ZodOpenApiMediaTypeObject, ctx: {
|
|
6
|
-
registry: ComponentRegistry;
|
|
7
|
-
io: "input" | "output";
|
|
8
|
-
}, path: string[]) => MediaTypeObject;
|
|
9
|
-
//#endregion
|
|
10
4
|
//#region src/create/parameters.d.ts
|
|
11
5
|
declare const createParameter: (parameter: $ZodType, location: {
|
|
12
6
|
in: ParameterLocation;
|
|
@@ -19,4 +13,4 @@ declare const createParameter: (parameter: $ZodType, location: {
|
|
|
19
13
|
//#region src/create/object.d.ts
|
|
20
14
|
declare const unwrapZodObject: (zodType: $ZodTypes, io: "input" | "output", path: string[]) => $ZodObject;
|
|
21
15
|
//#endregion
|
|
22
|
-
export { Override, createComponents,
|
|
16
|
+
export { Override, createComponents, createParameter, createRegistry, isAnyZodType, unwrapZodObject };
|
package/dist/api.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { ComponentRegistry,
|
|
1
|
+
import { ComponentRegistry, Override, ParameterLocation, ParameterObject, ReferenceObject, createComponents, createRegistry, isAnyZodType } from "./components-5_CJdR73.js";
|
|
2
2
|
import { $ZodObject, $ZodType, $ZodTypes } from "zod/v4/core";
|
|
3
3
|
|
|
4
|
-
//#region src/create/content.d.ts
|
|
5
|
-
declare const createMediaTypeObject: (mediaTypeObject: ZodOpenApiMediaTypeObject, ctx: {
|
|
6
|
-
registry: ComponentRegistry;
|
|
7
|
-
io: "input" | "output";
|
|
8
|
-
}, path: string[]) => MediaTypeObject;
|
|
9
|
-
//#endregion
|
|
10
4
|
//#region src/create/parameters.d.ts
|
|
11
5
|
declare const createParameter: (parameter: $ZodType, location: {
|
|
12
6
|
in: ParameterLocation;
|
|
@@ -19,4 +13,4 @@ declare const createParameter: (parameter: $ZodType, location: {
|
|
|
19
13
|
//#region src/create/object.d.ts
|
|
20
14
|
declare const unwrapZodObject: (zodType: $ZodTypes, io: "input" | "output", path: string[]) => $ZodObject;
|
|
21
15
|
//#endregion
|
|
22
|
-
export { Override, createComponents,
|
|
16
|
+
export { Override, createComponents, createParameter, createRegistry, isAnyZodType, unwrapZodObject };
|
package/dist/api.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
require('./zod-i2t01GF0.js');
|
|
2
|
-
const require_components = require('./components-
|
|
1
|
+
const require_zod = require('./zod-i2t01GF0.js');
|
|
2
|
+
const require_components = require('./components-BaA49bb2.js');
|
|
3
3
|
|
|
4
4
|
exports.createComponents = require_components.createComponents;
|
|
5
|
-
exports.createMediaTypeObject = require_components.createMediaTypeObject;
|
|
6
5
|
exports.createParameter = require_components.createParameter;
|
|
7
6
|
exports.createRegistry = require_components.createRegistry;
|
|
7
|
+
exports.isAnyZodType = require_zod.isAnyZodType;
|
|
8
8
|
exports.unwrapZodObject = require_components.unwrapZodObject;
|
package/dist/api.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./zod-BvA30wad.mjs";
|
|
2
|
-
import { createComponents,
|
|
1
|
+
import { isAnyZodType } from "./zod-BvA30wad.mjs";
|
|
2
|
+
import { createComponents, createParameter, createRegistry, unwrapZodObject } from "./components-DMRr6ft0.mjs";
|
|
3
3
|
|
|
4
|
-
export { createComponents,
|
|
4
|
+
export { createComponents, createParameter, createRegistry, isAnyZodType, unwrapZodObject };
|
|
@@ -744,12 +744,6 @@ Object.defineProperty(exports, 'createComponents', {
|
|
|
744
744
|
return createComponents;
|
|
745
745
|
}
|
|
746
746
|
});
|
|
747
|
-
Object.defineProperty(exports, 'createMediaTypeObject', {
|
|
748
|
-
enumerable: true,
|
|
749
|
-
get: function () {
|
|
750
|
-
return createMediaTypeObject;
|
|
751
|
-
}
|
|
752
|
-
});
|
|
753
747
|
Object.defineProperty(exports, 'createParameter', {
|
|
754
748
|
enumerable: true,
|
|
755
749
|
get: function () {
|
|
@@ -738,4 +738,4 @@ const createComponents = (registry, opts) => {
|
|
|
738
738
|
};
|
|
739
739
|
|
|
740
740
|
//#endregion
|
|
741
|
-
export { createComponents,
|
|
741
|
+
export { createComponents, createParameter, createPaths, createRegistry, createSchema, unwrapZodObject };
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./zod-BvA30wad.mjs";
|
|
2
|
-
import { createComponents, createPaths, createRegistry, createSchema } from "./components-
|
|
2
|
+
import { createComponents, createPaths, createRegistry, createSchema } from "./components-DMRr6ft0.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/create/document.ts
|
|
5
5
|
const createDocument = (zodOpenApiObject, opts = {}) => {
|