MCPcopy
hub / github.com/nestjs/swagger / mergeWebhooks

Method mergeWebhooks

lib/swagger-module.ts:32–40  ·  view source on GitHub ↗
(
    configWebhooks?: OpenAPIObject['webhooks'],
    scannedWebhooks?: OpenAPIObject['webhooks']
  )

Source from the content-addressed store, hash-verified

30 private static readonly metadataLoader = new MetadataLoader();
31
32 private static mergeWebhooks(
33 configWebhooks?: OpenAPIObject['webhooks'],
34 scannedWebhooks?: OpenAPIObject['webhooks']
35 ): OpenAPIObject['webhooks'] | undefined {
36 if (!configWebhooks && !scannedWebhooks) {
37 return undefined;
38 }
39 return assignTwoLevelsDeep({}, configWebhooks || {}, scannedWebhooks || {});
40 }
41
42 public static createDocument(
43 app: INestApplication,

Callers 1

createDocumentMethod · 0.80

Calls 1

assignTwoLevelsDeepFunction · 0.90

Tested by

no test coverage detected