From f70a26ea470ef946fa2fdc08d7d361739e3f94e2 Mon Sep 17 00:00:00 2001 From: Steve Calvert Date: Mon, 27 Apr 2026 13:32:22 -0700 Subject: [PATCH] fix(theme): import Schema helpers from theme package for openapi-docs v5 After bumping to docusaurus-plugin-openapi-docs@5.0.1 and docusaurus-theme-openapi-docs@5.0.1, getQualifierMessage was removed from the plugin's lib/markdown/schema and now lives only in the theme package. The swizzled Schema component still imported from the old plugin path, so the symbol silently became undefined and any page whose schema hit the call path crashed with "TypeError: getQualifierMessage is not a function" (e.g. /api/indexing-api/bulk-index-employees). Update the import to pull both helpers from the theme package where they now live. Co-Authored-By: Claude Opus 4.7 --- src/theme/Schema/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/Schema/index.tsx b/src/theme/Schema/index.tsx index 158162b6..c1f9b0d9 100644 --- a/src/theme/Schema/index.tsx +++ b/src/theme/Schema/index.tsx @@ -13,7 +13,7 @@ import clsx from 'clsx'; import { getQualifierMessage, getSchemaName, -} from 'docusaurus-plugin-openapi-docs/lib/markdown/schema'; +} from 'docusaurus-theme-openapi-docs/lib/markdown/schema'; import { SchemaObject } from 'docusaurus-plugin-openapi-docs/lib/openapi/types'; // eslint-disable-next-line import/no-extraneous-dependencies