Skip to content

Commit 4e02b74

Browse files
authored
Disable warning when loading specs from directory (#302)
1 parent f2f38f7 commit 4e02b74

File tree

1 file changed

+0
-6
lines changed
  • packages/docusaurus-plugin-openapi-docs/src/openapi

1 file changed

+0
-6
lines changed

packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,6 @@ export async function readOpenapiFiles(
280280
if (!isURL(openapiPath)) {
281281
const stat = await fs.lstat(openapiPath);
282282
if (stat.isDirectory()) {
283-
console.warn(
284-
chalk.yellow(
285-
"WARNING: Loading a directory of OpenAPI definitions is experimental and subject to unannounced breaking changes."
286-
)
287-
);
288-
289283
// TODO: Add config for inlcude/ignore
290284
const allFiles = await Globby(["**/*.{json,yaml,yml}"], {
291285
cwd: openapiPath,

0 commit comments

Comments
 (0)