@stackql/provider-utils 0.1.2 → 0.1.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/package.json
CHANGED
package/src/docgen/helpers.js
CHANGED
|
@@ -388,9 +388,9 @@ function getHttpOperationInfo(dereferencedAPI, path, httpVerb, mediaType, openAP
|
|
|
388
388
|
throw new Error(`HTTP verb '${httpVerb}' not found for path '${path}'`);
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
//
|
|
392
|
-
const opDescription = dereferencedAPI.paths[path][httpVerb].description || '';
|
|
393
|
-
|
|
391
|
+
// Get operation description and replace curly braces with HTML entities
|
|
392
|
+
const opDescription = (dereferencedAPI.paths[path][httpVerb].description || '').replace(/\{/g, '{').replace(/\}/g, '}');
|
|
393
|
+
|
|
394
394
|
// Extract request body if it exists
|
|
395
395
|
let requestBody = {};
|
|
396
396
|
if (dereferencedAPI.paths[path][httpVerb].requestBody &&
|
|
@@ -38,7 +38,7 @@ export function createFieldsSection(resourceData, dereferencedAPI) {
|
|
|
38
38
|
content += `<TabItem value="${methodName}">\n\n`;
|
|
39
39
|
|
|
40
40
|
// Add the method description if available
|
|
41
|
-
if (methodData.respDescription) {
|
|
41
|
+
if (methodData.respDescription && methodData.respDescription.trim().toUpperCase() !== 'OK') {
|
|
42
42
|
content += `${methodData.respDescription}\n\n`;
|
|
43
43
|
}
|
|
44
44
|
|