@kubb/plugin-oas
Version:
OpenAPI Specification (OAS) plugin for Kubb, providing core functionality for parsing and processing OpenAPI/Swagger schemas for code generation.
42 lines (37 loc) • 1.48 kB
text/typescript
import type { PluginFactoryOptions } from '@kubb/core'
import { createGenerator as _createGenerator } from './generators/createGenerator.ts'
import { createReactGenerator as _createReactGenerator } from './generators/createReactGenerator.ts'
import type { Generator as _Generator } from './generators/types.ts'
export type { OperationMethodResult } from './OperationGenerator.ts'
export { OperationGenerator } from './OperationGenerator.ts'
export { pluginOas, pluginOasName } from './plugin.ts'
export type {
GetSchemaGeneratorOptions,
SchemaGeneratorBuildOptions,
SchemaGeneratorOptions,
SchemaMethodResult,
} from './SchemaGenerator.ts'
export { SchemaGenerator } from './SchemaGenerator.ts'
export type {
Schema,
SchemaKeyword,
SchemaKeywordBase,
SchemaKeywordMapper,
SchemaMapper,
SchemaTree,
} from './SchemaMapper.ts'
export { isKeyword, schemaKeywords } from './SchemaMapper.ts'
export type * from './types.ts'
export { buildOperation, buildOperations, buildSchema } from './utils.tsx'
/**
* @deprecated use `import { createGenerator } from '@kubb/plugin-oas/generators'`
*/
export const createGenerator = _createGenerator
/**
* @deprecated use `import { createReactGenerator } from '@kubb/plugin-oas/generators'`
*/
export const createReactGenerator = _createReactGenerator
/**
* @deprecated use `import { Generator } from '@kubb/plugin-oas/generators'`
*/
export type Generator<TOptions extends PluginFactoryOptions> = _Generator<TOptions>