@postman-enricher/core 1.2.10 → 1.2.12

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.
@@ -20,7 +20,10 @@ export function addDescriptions(collection, config) {
20
20
  collection.info.name = collectionConfig.name;
21
21
  }
22
22
  if (collectionConfig.description) {
23
- collection.info.description = collectionConfig.description;
23
+ collection.info.description = {
24
+ content: collectionConfig.description,
25
+ type: 'text/markdown',
26
+ };
24
27
  }
25
28
  }
26
29
  }
@@ -29,17 +32,24 @@ export function addDescriptions(collection, config) {
29
32
  walkCollection(collection.item, (item) => {
30
33
  if (isFolder(item)) {
31
34
  const folderKey = item.name?.toLowerCase();
35
+ let descriptionText;
32
36
  // Try exact match first
33
37
  if (config.folders && config.folders[folderKey]) {
34
- item.description = config.folders[folderKey];
38
+ descriptionText = config.folders[folderKey];
35
39
  }
36
40
  // Try without special characters
37
41
  else {
38
42
  const cleanKey = folderKey?.replace(/[{}:]/g, '');
39
43
  if (config.folders && cleanKey && config.folders[cleanKey]) {
40
- item.description = config.folders[cleanKey];
44
+ descriptionText = config.folders[cleanKey];
41
45
  }
42
46
  }
47
+ if (descriptionText) {
48
+ item.description = {
49
+ content: descriptionText,
50
+ type: 'text/markdown',
51
+ };
52
+ }
43
53
  }
44
54
  });
45
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postman-enricher/core",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "Core enrichment logic for Postman Enricher",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "openapi-to-postmanv2": "^5.5.0",
19
19
  "yaml": "^2.8.1",
20
- "@postman-enricher/shared": "^1.2.10"
20
+ "@postman-enricher/shared": "^1.2.12"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@anolilab/semantic-release-pnpm": "^3.0.0",