From dd7fb76527fdb95cb918eee659e463d8e0314f61 Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 28 Mar 2024 19:18:42 +0100 Subject: [PATCH] chore(openapi): export OpenAPIValidatorMiddlewareError (#448) --- .changeset/lazy-phones-sniff.md | 5 +++++ packages/openapi/src/index.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/lazy-phones-sniff.md diff --git a/.changeset/lazy-phones-sniff.md b/.changeset/lazy-phones-sniff.md new file mode 100644 index 00000000..652a17d1 --- /dev/null +++ b/.changeset/lazy-phones-sniff.md @@ -0,0 +1,5 @@ +--- +'@interledger/openapi': patch +--- + +- Exporting `OpenAPIValidatorMiddlewareError` from package diff --git a/packages/openapi/src/index.ts b/packages/openapi/src/index.ts index 9bfa4708..55ac2fbd 100644 --- a/packages/openapi/src/index.ts +++ b/packages/openapi/src/index.ts @@ -9,7 +9,10 @@ import OpenAPIResponseValidator, { } from 'openapi-response-validator' import { OpenAPIV3, OpenAPIV3_1 } from 'openapi-types' -export { createValidatorMiddleware } from './middleware' +export { + createValidatorMiddleware, + OpenAPIValidatorMiddlewareError +} from './middleware' export const HttpMethod = { ...OpenAPIV3.HttpMethods