@cerios/openapi-to-zod 1.1.1 → 1.3.0
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 +192 -10
- package/dist/cli.js +421 -49
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +428 -50
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +384 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +384 -46
- package/dist/index.mjs.map +1 -1
- package/dist/internal.d.mts +72 -2
- package/dist/internal.d.ts +72 -2
- package/dist/internal.js +139 -1
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +132 -1
- package/dist/internal.mjs.map +1 -1
- package/dist/{types-CI48CjiU.d.mts → types-B3GgqGzM.d.mts} +139 -1
- package/dist/{types-CI48CjiU.d.ts → types-B3GgqGzM.d.ts} +139 -1
- package/package.json +16 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OpenApiGeneratorOptions } from './types-
|
|
2
|
-
export { C as CommonSchemaOptions, a as ConfigFile, E as ExecutionMode, b as
|
|
1
|
+
import { O as OpenApiGeneratorOptions } from './types-B3GgqGzM.mjs';
|
|
2
|
+
export { C as CommonSchemaOptions, a as ConfigFile, E as ExecutionMode, b as OpenAPIParameter, c as OpenAPIRequestBody, d as OpenAPIResponse, e as OpenAPISchema, f as OpenAPISpec, g as OperationFilters, R as RequestOptions, h as ResponseOptions, i as defineConfig } from './types-B3GgqGzM.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Custom error classes for better error handling and debugging
|
|
@@ -125,6 +125,17 @@ declare class OpenApiGenerator {
|
|
|
125
125
|
* Generate query parameter schemas for each operation
|
|
126
126
|
*/
|
|
127
127
|
private generateQueryParameterSchemas;
|
|
128
|
+
/**
|
|
129
|
+
* Generate a PascalCase method name from HTTP method and path
|
|
130
|
+
* Used as fallback when operationId is not available
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
private generateMethodNameFromPath;
|
|
134
|
+
/**
|
|
135
|
+
* Capitalizes a path segment, handling special characters like dashes, underscores, and dots
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
private capitalizeSegment;
|
|
128
139
|
/**
|
|
129
140
|
* Check if a header should be ignored based on filter patterns
|
|
130
141
|
* @internal
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OpenApiGeneratorOptions } from './types-
|
|
2
|
-
export { C as CommonSchemaOptions, a as ConfigFile, E as ExecutionMode, b as
|
|
1
|
+
import { O as OpenApiGeneratorOptions } from './types-B3GgqGzM.js';
|
|
2
|
+
export { C as CommonSchemaOptions, a as ConfigFile, E as ExecutionMode, b as OpenAPIParameter, c as OpenAPIRequestBody, d as OpenAPIResponse, e as OpenAPISchema, f as OpenAPISpec, g as OperationFilters, R as RequestOptions, h as ResponseOptions, i as defineConfig } from './types-B3GgqGzM.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Custom error classes for better error handling and debugging
|
|
@@ -125,6 +125,17 @@ declare class OpenApiGenerator {
|
|
|
125
125
|
* Generate query parameter schemas for each operation
|
|
126
126
|
*/
|
|
127
127
|
private generateQueryParameterSchemas;
|
|
128
|
+
/**
|
|
129
|
+
* Generate a PascalCase method name from HTTP method and path
|
|
130
|
+
* Used as fallback when operationId is not available
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
private generateMethodNameFromPath;
|
|
134
|
+
/**
|
|
135
|
+
* Capitalizes a path segment, handling special characters like dashes, underscores, and dots
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
private capitalizeSegment;
|
|
128
139
|
/**
|
|
129
140
|
* Check if a header should be ignored based on filter patterns
|
|
130
141
|
* @internal
|