From 2d02c2cbdc9a352ceecb943d15110c16a3f19529 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Sat, 9 Mar 2024 14:42:14 -0500 Subject: [PATCH] changed/fixed reexport from openapi3-ts, version bump for 0.6.0-alpha.2 --- package.json | 2 +- src/index.ts | 4 +- src/oas31-types.ts | 95 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+), 4 deletions(-) create mode 100644 src/oas31-types.ts diff --git a/package.json b/package.json index 36cd66b..c6acda9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eropple/fastify-openapi3", - "version": "0.6.0-alpha.1", + "version": "0.6.0-alpha.2", "author": "Ed Ropple", "license": "LGPL-3.0", "type": "module", diff --git a/src/index.ts b/src/index.ts index e5e8bc8..493cb82 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,11 +1,9 @@ import "./extensions.js"; -import * as _OAS31 from "openapi3-ts"; - import { oas3Plugin } from "./plugin.js"; export default oas3Plugin; export { OAS3PluginOptions } from "./plugin.js"; -export const OAS31 = _OAS31; +export type * as OAS31 from "./oas31-types.js"; export { schemaType, TaggedSchema } from "./schemas.js"; diff --git a/src/oas31-types.ts b/src/oas31-types.ts new file mode 100644 index 0000000..9021139 --- /dev/null +++ b/src/oas31-types.ts @@ -0,0 +1,95 @@ +import { + BaseParameterObject, + CallbackObject, + CallbacksObject, + ComponentsObject, + ContactObject, + ContentObject, + DiscriminatorObject, + EncodingObject, + EncodingPropertyObject, + ExampleObject, + ExamplesObject, + ExternalDocumentationObject, + HeaderObject, + HeadersObject, + ISpecificationExtension, + InfoObject, + LicenseObject, + LinkObject, + LinkParametersObject, + LinksObject, + MediaTypeObject, + OAuthFlowObject, + OAuthFlowsObject, + OpenAPIObject, + OperationObject, + ParameterObject, + ParameterLocation, + ParameterStyle, + PathItemObject, + PathObject, + PathsObject, + ReferenceObject, + RequestBodyObject, + ResponseObject, + ResponsesObject, + SchemaObject, + SchemasObject, + ScopesObject, + SecurityRequirementObject, + SecuritySchemeObject, + SecuritySchemeType, + ServerObject, + ServerVariableObject, + TagObject, + XmlObject, +} from "openapi3-ts"; + +export { + BaseParameterObject, + CallbackObject, + CallbacksObject, + ComponentsObject, + ContactObject, + ContentObject, + DiscriminatorObject, + EncodingObject, + EncodingPropertyObject, + ExampleObject, + ExamplesObject, + ExternalDocumentationObject, + HeaderObject, + HeadersObject, + ISpecificationExtension, + InfoObject, + LicenseObject, + LinkObject, + LinkParametersObject, + LinksObject, + MediaTypeObject, + OAuthFlowObject, + OAuthFlowsObject, + OpenAPIObject, + OperationObject, + ParameterObject, + ParameterLocation, + ParameterStyle, + PathItemObject, + PathObject, + PathsObject, + ReferenceObject, + RequestBodyObject, + ResponseObject, + ResponsesObject, + SchemaObject, + SchemasObject, + ScopesObject, + SecurityRequirementObject, + SecuritySchemeObject, + SecuritySchemeType, + ServerObject, + ServerVariableObject, + TagObject, + XmlObject, +};