zod-openapi 5.4.2 → 5.4.3

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.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_components = require('./components-BPKWviAb.cjs');
1
+ const require_components = require('./components-BtkBk4ss.cjs');
2
2
 
3
3
  exports.createComponents = require_components.createComponents;
4
4
  exports.createRegistry = require_components.createRegistry;
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { createComponents, createRegistry, isAnyZodType, unwrapZodObject } from "./components-8XHv_FhV.js";
1
+ import { createComponents, createRegistry, isAnyZodType, unwrapZodObject } from "./components-DV_-zLJ6.js";
2
2
 
3
3
  export { createComponents, createRegistry, isAnyZodType, unwrapZodObject };
@@ -317,7 +317,6 @@ const renameComponents = (components, outputIds, ctx, refPath) => {
317
317
  componentsToRename.set(key, newName);
318
318
  components[newName] = components[key];
319
319
  delete components[key];
320
- continue;
321
320
  }
322
321
  return componentsToRename;
323
322
  };
@@ -906,8 +905,7 @@ const createIOSchemas = (ctx) => {
906
905
  };
907
906
  const createManualSchemas = (registry$1) => {
908
907
  for (const [key, value] of registry$1.components.schemas.manual) if (!value.input.used) {
909
- const io = zod_v4_core.globalRegistry.get(value.zodType)?.unusedIO ?? "output";
910
- const schema = value[io].schemaObject;
908
+ const schema = value[zod_v4_core.globalRegistry.get(value.zodType)?.unusedIO ?? "output"].schemaObject;
911
909
  registry$1.components.schemas.ids.set(key, schema);
912
910
  }
913
911
  };
@@ -292,7 +292,6 @@ const renameComponents = (components, outputIds, ctx, refPath) => {
292
292
  componentsToRename.set(key, newName);
293
293
  components[newName] = components[key];
294
294
  delete components[key];
295
- continue;
296
295
  }
297
296
  return componentsToRename;
298
297
  };
@@ -881,8 +880,7 @@ const createIOSchemas = (ctx) => {
881
880
  };
882
881
  const createManualSchemas = (registry$1) => {
883
882
  for (const [key, value] of registry$1.components.schemas.manual) if (!value.input.used) {
884
- const io = globalRegistry.get(value.zodType)?.unusedIO ?? "output";
885
- const schema = value[io].schemaObject;
883
+ const schema = value[globalRegistry.get(value.zodType)?.unusedIO ?? "output"].schemaObject;
886
884
  registry$1.components.schemas.ids.set(key, schema);
887
885
  }
888
886
  };
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_components = require('./components-BPKWviAb.cjs');
1
+ const require_components = require('./components-BtkBk4ss.cjs');
2
2
 
3
3
  //#region src/create/document.ts
4
4
  const createDocument = (zodOpenApiObject, opts = {}) => {
package/dist/index.d.cts CHANGED
@@ -2,7 +2,9 @@ import { BaseParameterObject, CallbackObject, CallbacksObject, ComponentRegistry
2
2
  import * as core from "zod/v4/core";
3
3
 
4
4
  //#region rolldown:runtime
5
-
5
+ declare namespace oas31_d_exports {
6
+ export { BaseParameterObject, CallbackObject, CallbacksObject, ComponentsObject, ContactObject, ContentObject, DiscriminatorObject, EncodingObject, EncodingPropertyObject, ExampleObject, ExamplesObject, ExternalDocumentationObject, HeaderObject, HeadersObject, IExtensionName, IExtensionType, ISpecificationExtension, InfoObject, LicenseObject, LinkObject, LinkParametersObject, LinksObject, MediaTypeObject, OAuthFlowObject, OAuthFlowsObject, OpenAPIObject, OperationObject, ParameterLocation, ParameterObject, ParameterStyle, PathItemObject, PathObject, PathsObject, ReferenceObject, RequestBodyObject, ResponseObject, ResponsesObject, SchemaObject, SchemaObjectType, SchemasObject, ScopesObject, SecurityRequirementObject, SecuritySchemeObject, SecuritySchemeType, ServerObject, ServerVariableObject, TagObject, XmlObject };
7
+ }
6
8
  //#endregion
7
9
  //#region src/create/schema/schema.d.ts
8
10
  interface SchemaResult {
package/dist/index.d.ts CHANGED
@@ -2,7 +2,9 @@ import { BaseParameterObject, CallbackObject, CallbacksObject, ComponentRegistry
2
2
  import * as core from "zod/v4/core";
3
3
 
4
4
  //#region rolldown:runtime
5
-
5
+ declare namespace oas31_d_exports {
6
+ export { BaseParameterObject, CallbackObject, CallbacksObject, ComponentsObject, ContactObject, ContentObject, DiscriminatorObject, EncodingObject, EncodingPropertyObject, ExampleObject, ExamplesObject, ExternalDocumentationObject, HeaderObject, HeadersObject, IExtensionName, IExtensionType, ISpecificationExtension, InfoObject, LicenseObject, LinkObject, LinkParametersObject, LinksObject, MediaTypeObject, OAuthFlowObject, OAuthFlowsObject, OpenAPIObject, OperationObject, ParameterLocation, ParameterObject, ParameterStyle, PathItemObject, PathObject, PathsObject, ReferenceObject, RequestBodyObject, ResponseObject, ResponsesObject, SchemaObject, SchemaObjectType, SchemasObject, ScopesObject, SecurityRequirementObject, SecuritySchemeObject, SecuritySchemeType, ServerObject, ServerVariableObject, TagObject, XmlObject };
7
+ }
6
8
  //#endregion
7
9
  //#region src/create/schema/schema.d.ts
8
10
  interface SchemaResult {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createComponents, createPaths, createRegistry, createSchema } from "./components-8XHv_FhV.js";
1
+ import { createComponents, createPaths, createRegistry, createSchema } from "./components-DV_-zLJ6.js";
2
2
 
3
3
  //#region src/create/document.ts
4
4
  const createDocument = (zodOpenApiObject, opts = {}) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod-openapi",
3
- "version": "5.4.2",
3
+ "version": "5.4.3",
4
4
  "description": "Convert Zod Schemas to OpenAPI v3.x documentation",
5
5
  "keywords": [
6
6
  "typescript",
@@ -53,7 +53,7 @@
53
53
  "eslint-plugin-import-zod": "1.2.0",
54
54
  "eslint-plugin-zod-openapi": "2.0.0",
55
55
  "skuba": "12.2.0",
56
- "tsdown": "0.14.2",
56
+ "tsdown": "0.15.6",
57
57
  "vitest": "3.2.4",
58
58
  "yaml": "2.8.1",
59
59
  "zod": "4.1.11"