@mintlify/prebuild 1.0.790 → 1.0.792

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { openApiCheck, validateAsyncApi, buildImportMap, getFileCategory, isSnippetExtension, getAST, } from '@mintlify/common';
1
+ import { validate, validateAsyncApi, buildImportMap, getFileCategory, isSnippetExtension, getAST, } from '@mintlify/common';
2
2
  import { readFile } from 'fs/promises';
3
3
  import yaml from 'js-yaml';
4
4
  import * as path from 'path';
@@ -56,7 +56,7 @@ export const categorizeFilePaths = async (contentDirectoryPath, mintIgnore = [],
56
56
  const fileName = path.parse(filename).name;
57
57
  if (isOpenApi && !disableOpenApi) {
58
58
  try {
59
- const openApiDocument = await openApiCheck(obj);
59
+ const { schema: openApiDocument } = await validate(obj);
60
60
  if (openApiDocument) {
61
61
  openApiFiles.push({
62
62
  filename: fileName,
@@ -65,7 +65,9 @@ export const categorizeFilePaths = async (contentDirectoryPath, mintIgnore = [],
65
65
  });
66
66
  }
67
67
  }
68
- catch { }
68
+ catch (error) {
69
+ console.error(`Error validating OpenAPI file ${filename}: ${error}`);
70
+ }
69
71
  }
70
72
  if (isAsyncApi) {
71
73
  try {