@mintlify/prebuild 1.0.515 → 1.0.517

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.
@@ -21,6 +21,13 @@ export const getAsyncApiFilesFromConfig = async (config, localSchema) => {
21
21
  isAllowedLocalSchemaUrl(asyncApiConfig, localSchema)) {
22
22
  await addAsyncApiFileFromUrl(asyncApiConfig);
23
23
  }
24
+ else if (Array.isArray(asyncApiConfig)) {
25
+ for (const asyncApiUrl of asyncApiConfig) {
26
+ if (typeof asyncApiUrl === 'string' && isAllowedLocalSchemaUrl(asyncApiUrl, localSchema)) {
27
+ await addAsyncApiFileFromUrl(asyncApiUrl);
28
+ }
29
+ }
30
+ }
24
31
  else if (typeof asyncApiConfig === 'object' &&
25
32
  'source' in asyncApiConfig &&
26
33
  isAllowedLocalSchemaUrl(asyncApiConfig.source, localSchema)) {
@@ -21,6 +21,13 @@ export const getOpenApiFilesFromConfig = async (type, config, localSchema) => {
21
21
  if (typeof openapi === 'string' && isAllowedLocalSchemaUrl(openapi, localSchema)) {
22
22
  await addOpenApiFileFromUrl(openapi);
23
23
  }
24
+ else if (Array.isArray(openapi)) {
25
+ for (const openapiUrl of openapi) {
26
+ if (typeof openapiUrl === 'string' && isAllowedLocalSchemaUrl(openapiUrl, localSchema)) {
27
+ await addOpenApiFileFromUrl(openapiUrl);
28
+ }
29
+ }
30
+ }
24
31
  else if (typeof openapi === 'object' &&
25
32
  'source' in openapi &&
26
33
  isAllowedLocalSchemaUrl(openapi.source, localSchema)) {