@kubb/swagger
Advanced tools
Comparing version 2.0.0-beta.11 to 2.0.0-beta.12
@@ -1,5 +0,5 @@ | ||
import { b as OperationSchemas } from './types-x7F83Jdn.js'; | ||
import Oas from 'oas'; | ||
import { KubbFile, ResolveNameParams, KubbPlugin } from '@kubb/core'; | ||
import { Operation } from 'oas/operation'; | ||
import { O as OperationSchemas } from './types-BaLUOV9R.js'; | ||
import 'oas/types'; | ||
@@ -6,0 +6,0 @@ |
import * as _kubb_core from '@kubb/core'; | ||
import { PluginManager, KubbConfig, KubbFile, PluginFactoryOptions, Generator, KubbPlugin } from '@kubb/core'; | ||
import { P as PluginOptions, O as Options$1, a as OperationSchema, b as OperationSchemas, c as Paths, E as Exclude, I as Include, d as Override, C as ContentType } from './types-x7F83Jdn.js'; | ||
export { A as API, h as AppMeta, F as FileResolver, i as ImportMeta, e as Ref, f as Refs, R as ResolvePathOptions, g as Resolver } from './types-x7F83Jdn.js'; | ||
import { P as PluginOptions, a as Options$1, b as OperationSchema, O as OperationSchemas, c as Paths, E as Exclude, I as Include, d as Override, C as ContentType } from './types-BaLUOV9R.js'; | ||
export { A as API, h as AppMeta, F as FileResolver, i as ImportMeta, e as Ref, f as Refs, R as ResolvePathOptions, g as Resolver } from './types-BaLUOV9R.js'; | ||
import Oas from 'oas'; | ||
export { default as Oas } from 'oas'; | ||
import { OASDocument, HttpMethods } from 'oas/types'; | ||
import * as OasTypes from 'oas/types'; | ||
export { OasTypes }; | ||
export { HttpMethods as HttpMethod } from 'oas/types'; | ||
import { Operation } from 'oas/operation'; | ||
export { Operation } from 'oas/operation'; | ||
export { OpenAPIV3, OpenAPIV3_1 } from 'openapi-types'; | ||
@@ -15,0 +9,0 @@ declare const pluginName = "swagger"; |
import * as OasTypes from 'oas/types'; | ||
import { OASDocument, SchemaObject, ParameterObject } from 'oas/types'; | ||
import { a as OperationSchema, f as Refs } from './types-x7F83Jdn.js'; | ||
export { G as GetSchemasProps, j as getSchemas } from './types-x7F83Jdn.js'; | ||
import { Operation } from 'oas/operation'; | ||
@@ -9,2 +7,4 @@ import { KubbFile, KubbPlugin } from '@kubb/core'; | ||
import { FunctionParamsAST } from '@kubb/core/utils'; | ||
import { b as OperationSchema, f as Refs } from './types-BaLUOV9R.js'; | ||
export { G as GetSchemasProps, j as getSchemas } from './types-BaLUOV9R.js'; | ||
import Oas from 'oas'; | ||
@@ -11,0 +11,0 @@ import { OpenAPIV3, OpenAPIV3_1 } from 'openapi-types'; |
{ | ||
"name": "@kubb/swagger", | ||
"version": "2.0.0-beta.11", | ||
"version": "2.0.0-beta.12", | ||
"description": "Generator swagger", | ||
@@ -38,2 +38,7 @@ "keywords": [ | ||
}, | ||
"./oas": { | ||
"import": "./dist/oas.js", | ||
"require": "./dist/oas.cjs", | ||
"default": "./dist/oas.cjs" | ||
}, | ||
"./package.json": "./package.json", | ||
@@ -58,4 +63,4 @@ "./*": "./*" | ||
"swagger2openapi": "^7.0.8", | ||
"@kubb/core": "2.0.0-beta.11", | ||
"@kubb/react": "2.0.0-beta.11" | ||
"@kubb/core": "2.0.0-beta.12", | ||
"@kubb/react": "2.0.0-beta.12" | ||
}, | ||
@@ -74,3 +79,3 @@ "devDependencies": { | ||
"peerDependencies": { | ||
"@kubb/react": "2.0.0-beta.11" | ||
"@kubb/react": "2.0.0-beta.12" | ||
}, | ||
@@ -77,0 +82,0 @@ "packageManager": "pnpm@8.3.0", |
import { useApp } from '@kubb/react' | ||
import type { Oas, PluginOptions } from '../types.ts' | ||
import type { Oas } from '../oas/index.ts' | ||
import type { PluginOptions } from '../types.ts' | ||
@@ -5,0 +6,0 @@ export function useOas(): Oas { |
import { useApp, useFile, usePlugin, usePluginManager } from '@kubb/react' | ||
import type { KubbFile, KubbPlugin, ResolveNameParams } from '@kubb/core' | ||
import type { Operation, PluginOptions, ResolvePathOptions } from '../types.ts' | ||
import type { Operation } from 'oas/operation' | ||
import type { PluginOptions, ResolvePathOptions } from '../types.ts' | ||
@@ -6,0 +7,0 @@ export function useOperation(): Operation { |
import type { PluginManager } from '@kubb/core' | ||
import type { Oas, OperationSchema } from './types.ts' | ||
import type { Oas } from './oas/index.ts' | ||
import type { OperationSchema } from './types.ts' | ||
@@ -4,0 +5,0 @@ type Context = { |
@@ -14,3 +14,2 @@ import { resolve } from 'node:path' | ||
import type { KubbConfig } from '@kubb/core' | ||
import type oas from 'oas' | ||
import type { OASDocument } from 'oas/types' | ||
@@ -36,3 +35,3 @@ | ||
async parse(pathOrApi: string | OASDocument): Promise<oas> { | ||
async parse(pathOrApi: string | OASDocument): Promise<Oas> { | ||
const { validate } = this.#options | ||
@@ -56,3 +55,3 @@ | ||
static parseFromConfig(config: KubbConfig, options: Options = {}): Promise<oas> { | ||
static parseFromConfig(config: KubbConfig, options: Options = {}): Promise<Oas> { | ||
if ('data' in config.input) { | ||
@@ -59,0 +58,0 @@ if (typeof config.input.data === 'object') { |
@@ -12,3 +12,4 @@ /* eslint-disable @typescript-eslint/unbound-method */ | ||
import type { HttpMethods as HttpMethod, MediaTypeObject, RequestBodyObject } from 'oas/types' | ||
import type { ContentType, Exclude, Include, Oas, OasTypes, OpenAPIV3, Operation, OperationSchemas, Override, Paths } from './types.ts' | ||
import type { Oas, OasTypes, OpenAPIV3, Operation } from './oas/index.ts' | ||
import type { ContentType, Exclude, Include, OperationSchemas, Override, Paths } from './types.ts' | ||
@@ -15,0 +16,0 @@ export type GetOperationGeneratorOptions<T extends OperationGenerator<any, any, any>> = T extends OperationGenerator<infer Options, any, any> ? Options : never |
@@ -10,3 +10,4 @@ import path from 'node:path' | ||
import type { Logger } from '@kubb/core/logger' | ||
import type { Oas, OasTypes, PluginOptions } from './types.ts' | ||
import type { Oas, OasTypes } from './oas/index.ts' | ||
import type { PluginOptions } from './types.ts' | ||
@@ -13,0 +14,0 @@ export const pluginName = 'swagger' satisfies PluginOptions['name'] |
import type { KubbPlugin } from '@kubb/core' | ||
import type { KubbFile, PluginFactoryOptions, ResolveNameParams } from '@kubb/core' | ||
import type Oas from 'oas' | ||
import type { Operation } from 'oas/operation' | ||
import type { HttpMethods as HttpMethod, SchemaObject } from 'oas/types' | ||
import type { SchemaObject } from 'oas/types' | ||
import type { HttpMethod, Oas, Operation } from './oas/index.ts' | ||
import type { GetSchemasProps } from './utils/getSchemas.ts' | ||
@@ -142,8 +141,1 @@ | ||
} | ||
// external packages | ||
export type { default as Oas } from 'oas' | ||
export type { Operation } from 'oas/operation' | ||
export type { HttpMethods as HttpMethod } from 'oas/types' | ||
export type * as OasTypes from 'oas/types' | ||
export type { OpenAPIV3, OpenAPIV3_1 } from 'openapi-types' |
import transformers from '@kubb/core/transformers' | ||
import { URLPath } from '@kubb/core/utils' | ||
import type { Operation } from '../types.ts' | ||
import type { Operation } from '../oas/index.ts' | ||
@@ -6,0 +6,0 @@ export function getComments(operation: Operation): string[] { |
@@ -7,3 +7,4 @@ import transformers from '@kubb/core/transformers' | ||
import type { FunctionParamsAST } from '@kubb/core/utils' | ||
import type { OasTypes, OperationSchema } from '../types.ts' | ||
import type { OasTypes } from '../oas/index.ts' | ||
import type { OperationSchema } from '../types.ts' | ||
@@ -10,0 +11,0 @@ export function getASTParams( |
import { isOpenApiV3_1Document } from './isOpenApiV3_1Document.ts' | ||
import type { Oas, OasTypes, OpenAPIV3, OpenAPIV3_1 } from '../types.ts' | ||
import type { Oas, OasTypes, OpenAPIV3, OpenAPIV3_1 } from '../oas/index.ts' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,3 @@ | ||
import type { ContentType, Oas, OasTypes } from '../types.ts' | ||
import type { Oas, OasTypes } from '../oas/index.ts' | ||
import type { ContentType } from '../types.ts' | ||
@@ -3,0 +4,0 @@ type Mode = 'schemas' | 'responses' | 'requestBodies' |
@@ -1,2 +0,2 @@ | ||
import type { OasTypes } from '../types.ts' | ||
import type { OasTypes } from '../oas/index.ts' | ||
@@ -3,0 +3,0 @@ export function isRequired(schema?: OasTypes.SchemaObject): boolean { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
235444
54
2912
4
+ Added@kubb/core@2.0.0-beta.12(transitive)
+ Added@kubb/parser@2.0.0-beta.12(transitive)
+ Added@kubb/react@2.0.0-beta.12(transitive)
+ Added@kubb/types@2.0.0-beta.12(transitive)
+ Addedjs-runtime@0.0.7(transitive)
- Removed@kubb/core@2.0.0-beta.11(transitive)
- Removed@kubb/parser@2.0.0-beta.11(transitive)
- Removed@kubb/react@2.0.0-beta.11(transitive)
- Removed@kubb/types@2.0.0-beta.11(transitive)
- Removedcamel-case@4.1.2(transitive)
- Removedcapital-case@1.0.4(transitive)
- Removedchange-case@4.1.2(transitive)
- Removedconstant-case@3.0.4(transitive)
- Removeddot-case@3.0.4(transitive)
- Removedheader-case@2.0.4(transitive)
- Removedjs-runtime@0.0.6(transitive)
- Removedlower-case@2.0.2(transitive)
- Removedno-case@3.0.4(transitive)
- Removedparam-case@3.0.4(transitive)
- Removedpascal-case@3.1.2(transitive)
- Removedpath-case@3.0.4(transitive)
- Removedsentence-case@3.0.4(transitive)
- Removedsnake-case@3.0.4(transitive)
- Removedtslib@2.8.1(transitive)
- Removedupper-case@2.0.2(transitive)
- Removedupper-case-first@2.0.2(transitive)
Updated@kubb/core@2.0.0-beta.12
Updated@kubb/react@2.0.0-beta.12