@eventcatalog/generator-openapi 7.4.3 → 7.4.4
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.
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -561,7 +561,7 @@ var getSummary2 = (message2) => {
|
|
|
561
561
|
}
|
|
562
562
|
return escapeSpecialCharactersThatBreakMarkdown(eventCatalogMessageSummary);
|
|
563
563
|
};
|
|
564
|
-
var buildMessage = async (pathToFile, document, operation, generateMarkdown, messageIdConfig) => {
|
|
564
|
+
var buildMessage = async (pathToFile, document, operation, generateMarkdown, messageIdConfig, serviceId) => {
|
|
565
565
|
const requestBodiesAndResponses = await getSchemasByOperationId(pathToFile, operation.operationId);
|
|
566
566
|
const extensions = operation.extensions || {};
|
|
567
567
|
const operationTags = operation.tags.map((badge) => ({
|
|
@@ -584,7 +584,7 @@ var buildMessage = async (pathToFile, document, operation, generateMarkdown, mes
|
|
|
584
584
|
}
|
|
585
585
|
if (messageIdConfig?.prefixWithServiceId) {
|
|
586
586
|
const separator = messageIdConfig.separator || "-";
|
|
587
|
-
uniqueIdentifier = [
|
|
587
|
+
uniqueIdentifier = [serviceId, uniqueIdentifier].join(separator);
|
|
588
588
|
}
|
|
589
589
|
return {
|
|
590
590
|
id: extensions["x-eventcatalog-message-id"] || uniqueIdentifier,
|
|
@@ -2822,7 +2822,7 @@ import { join } from "path";
|
|
|
2822
2822
|
// package.json
|
|
2823
2823
|
var package_default = {
|
|
2824
2824
|
name: "@eventcatalog/generator-openapi",
|
|
2825
|
-
version: "7.4.
|
|
2825
|
+
version: "7.4.4",
|
|
2826
2826
|
description: "OpenAPI generator for EventCatalog",
|
|
2827
2827
|
scripts: {
|
|
2828
2828
|
build: "tsup",
|
|
@@ -3032,7 +3032,8 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
3032
3032
|
...options,
|
|
3033
3033
|
owners: service.setMessageOwnersToServiceOwners ? service.owners : [],
|
|
3034
3034
|
serviceHasMultipleSpecFiles: Array.isArray(serviceSpec.path),
|
|
3035
|
-
isDraft: isServiceMarkedAsDraft
|
|
3035
|
+
isDraft: isServiceMarkedAsDraft,
|
|
3036
|
+
serviceId: service.id
|
|
3036
3037
|
});
|
|
3037
3038
|
let owners = service.owners || [];
|
|
3038
3039
|
let repository = null;
|
|
@@ -3108,7 +3109,8 @@ var processMessagesForOpenAPISpec = async (pathToSpec, document, servicePath, op
|
|
|
3108
3109
|
document,
|
|
3109
3110
|
operation,
|
|
3110
3111
|
options.messages?.generateMarkdown,
|
|
3111
|
-
options.messages?.id
|
|
3112
|
+
options.messages?.id,
|
|
3113
|
+
options.serviceId
|
|
3112
3114
|
);
|
|
3113
3115
|
let messageMarkdown = message2.markdown;
|
|
3114
3116
|
const messageType = operation.type;
|