@mintlify/prebuild 1.0.872 → 1.0.873
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.
|
@@ -38,8 +38,7 @@ export const generateAsyncApiFromDocsConfig = async (navigation, asyncApiFiles,
|
|
|
38
38
|
!asyncApiFiles[0]?.spec.channels().length) {
|
|
39
39
|
throw new Error('No channels defined');
|
|
40
40
|
}
|
|
41
|
-
throw new Error(`AsyncAPI file ${asyncApi} defined in ${getDivisionNav(nav)
|
|
42
|
-
?.division} in your docs.json does not exist`);
|
|
41
|
+
throw new Error(`AsyncAPI file ${asyncApi} defined in ${getDivisionNav(nav)?.division} in your docs.json does not exist`);
|
|
43
42
|
}
|
|
44
43
|
processedAsyncApiFiles.push(asyncApiFile);
|
|
45
44
|
}
|
|
@@ -43,8 +43,7 @@ export const generateOpenApiFromDocsConfig = async (navigation, openApiFiles, pa
|
|
|
43
43
|
file.originalFileLocation === optionallyAddLeadingSlash(openapi));
|
|
44
44
|
}
|
|
45
45
|
if (!openApiFile) {
|
|
46
|
-
throw new Error(`Openapi file ${openapi} defined in ${getDivisionNav(nav)
|
|
47
|
-
?.division} in your docs.json does not exist`);
|
|
46
|
+
throw new Error(`Openapi file ${openapi} defined in ${getDivisionNav(nav)?.division} in your docs.json does not exist`);
|
|
48
47
|
}
|
|
49
48
|
const { pagesAcc: pagesAccFromGeneratedOpenApiPages, nav: navFromGeneratedOpenApiPages } = await generateOpenApiPagesForDocsConfig(openApiFile.spec, {
|
|
50
49
|
openApiFilePath: openApiFile.originalFileLocation,
|