Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@openapi-to/plugin-zod

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openapi-to/plugin-zod - npm Package Compare versions

Comparing version
3.0.0
to
3.0.1
dist/index.cjs

Sorry, the diff of this file is too big to display

+27
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": [],