@mintlify/previewing 4.0.848 → 4.0.850

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,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { findAndRemoveImports, hasImports, getFileCategory, openApiCheck, stringifyTree, isMintIgnored, } from '@mintlify/common';
2
+ import { findAndRemoveImports, hasImports, getFileCategory, validate, stringifyTree, isMintIgnored, } from '@mintlify/common';
3
3
  import { createPage, MintConfigUpdater, DocsConfigUpdater, preparseMdxTree, prebuild, } from '@mintlify/prebuild';
4
4
  import Chalk from 'chalk';
5
5
  import chokidar from 'chokidar';
@@ -257,7 +257,8 @@ const onUpdateEvent = async (filename, callback, options = {}) => {
257
257
  let doc;
258
258
  try {
259
259
  const file = await fs.readFile(filePath, 'utf-8');
260
- doc = await openApiCheck(yaml.load(file));
260
+ const { schema } = await validate(yaml.load(file));
261
+ doc = schema;
261
262
  }
262
263
  catch {
263
264
  doc = undefined;