@mintlify/prebuild 1.0.416 → 1.0.418

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.
@@ -25,8 +25,7 @@ export const generateOpenApiFromDocsConfig = async (navigation, openApiFiles, pa
25
25
  if (openapi) {
26
26
  let openApiFile = undefined;
27
27
  if (openapi.startsWith('https')) {
28
- openApiFile = await createOpenApiFile(openapi, getDivisionNav(nav)?.division ?? 'unknown');
29
- openApiFile.filename = `${openApiFile.filename}-${newOpenApiFiles.length}`;
28
+ openApiFile = await createOpenApiFile(openapi);
30
29
  newOpenApiFiles.push(openApiFile);
31
30
  }
32
31
  else {
@@ -112,12 +111,13 @@ function getDivisionNav(nav) {
112
111
  }
113
112
  return undefined;
114
113
  }
115
- async function createOpenApiFile(openApiUrl, division) {
114
+ async function createOpenApiFile(openApiUrl) {
116
115
  try {
117
116
  const document = await getOpenApiDocumentFromUrl(openApiUrl);
118
117
  return {
119
- filename: `openapi-from-${division}`,
118
+ filename: openApiUrl,
120
119
  spec: document,
120
+ originalFileLocation: openApiUrl,
121
121
  };
122
122
  }
123
123
  catch (err) {
@@ -12,8 +12,9 @@ export const getOpenApiFilesFromConfig = async (type, config) => {
12
12
  async function addOpenApiFileFromUrl(openapi) {
13
13
  const specFromUrl = await getOpenApiDocumentFromUrl(openapi);
14
14
  openApiFiles.push({
15
- filename: 'openapi-from-url',
15
+ filename: openapi,
16
16
  spec: specFromUrl,
17
+ originalFileLocation: openapi,
17
18
  });
18
19
  }
19
20
  if (openapi) {