@openapi-to/plugin-zod
Advanced tools
Sorry, the diff of this file is too big to display
| import * as _openapi_to_core from '@openapi-to/core'; | ||
| import { JSONSchema } from 'oas/types'; | ||
| import { OpenAPIV3, OpenAPIV3_1 } from 'openapi-types'; | ||
| type MixedSchemaObject = Extract<OpenAPIV3_1.SchemaObject, { | ||
| type?: (OpenAPIV3_1.ArraySchemaObjectType | OpenAPIV3_1.NonArraySchemaObjectType)[]; | ||
| }>; | ||
| type PluginConfig = { | ||
| /** | ||
| * 是否在 import 路径中添加扩展名(如 .ts) | ||
| */ | ||
| importWithExtension?: boolean; | ||
| }; | ||
| type SchemaObjectAndJSONSchema = OpenAPIV3.ArraySchemaObject | OpenAPIV3.NonArraySchemaObject | OpenAPIV3_1.ArraySchemaObject | OpenAPIV3_1.NonArraySchemaObject | MixedSchemaObject | JSONSchema | OpenAPIV3.ReferenceObject | OpenAPIV3_1.ReferenceObject; | ||
| interface JsonResponseObject { | ||
| code: string; | ||
| jsonSchema?: { | ||
| description?: string; | ||
| label: string; | ||
| schema: any; | ||
| type: string | string[]; | ||
| }; | ||
| } | ||
| declare const definePlugin: _openapi_to_core.PluginConfigFactory<PluginConfig>; | ||
| export { type JsonResponseObject, type PluginConfig, type SchemaObjectAndJSONSchema, definePlugin }; |
| import * as _openapi_to_core from '@openapi-to/core'; | ||
| import { JSONSchema } from 'oas/types'; | ||
| import { OpenAPIV3, OpenAPIV3_1 } from 'openapi-types'; | ||
| type MixedSchemaObject = Extract<OpenAPIV3_1.SchemaObject, { | ||
| type?: (OpenAPIV3_1.ArraySchemaObjectType | OpenAPIV3_1.NonArraySchemaObjectType)[]; | ||
| }>; | ||
| type PluginConfig = { | ||
| /** | ||
| * 是否在 import 路径中添加扩展名(如 .ts) | ||
| */ | ||
| importWithExtension?: boolean; | ||
| }; | ||
| type SchemaObjectAndJSONSchema = OpenAPIV3.ArraySchemaObject | OpenAPIV3.NonArraySchemaObject | OpenAPIV3_1.ArraySchemaObject | OpenAPIV3_1.NonArraySchemaObject | MixedSchemaObject | JSONSchema | OpenAPIV3.ReferenceObject | OpenAPIV3_1.ReferenceObject; | ||
| interface JsonResponseObject { | ||
| code: string; | ||
| jsonSchema?: { | ||
| description?: string; | ||
| label: string; | ||
| schema: any; | ||
| type: string | string[]; | ||
| }; | ||
| } | ||
| declare const definePlugin: _openapi_to_core.PluginConfigFactory<PluginConfig>; | ||
| export { type JsonResponseObject, type PluginConfig, type SchemaObjectAndJSONSchema, definePlugin }; |
Sorry, the diff of this file is too big to display
+4
-4
| { | ||
| "name": "@openapi-to/plugin-zod", | ||
| "version": "3.0.0", | ||
| "version": "3.0.1", | ||
| "sideEffects": false, | ||
@@ -25,4 +25,4 @@ "type": "module", | ||
| "@types/lodash": "^4.17.9", | ||
| "@openapi-to/config-ts": "3.0.0", | ||
| "@openapi-to/config-tsup": "3.0.0" | ||
| "@openapi-to/config-ts": "3.0.1", | ||
| "@openapi-to/config-tsup": "3.0.1" | ||
| }, | ||
@@ -33,3 +33,3 @@ "dependencies": { | ||
| "ts-morph": "^23.0.0", | ||
| "@openapi-to/core": "3.0.0" | ||
| "@openapi-to/core": "3.0.1" | ||
| }, | ||
@@ -36,0 +36,0 @@ "keywords": [], |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
207612
8207.8%6
200%5217
Infinity%2
100%3
50%+ Added
- Removed
Updated