@remnawave/backend-contract 2.9.6 → 2.9.7
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.
|
@@ -37,10 +37,10 @@ exports.EXAMPLES_SRR_BLOCK_LEGACY_CLIENTS_RULE = {
|
|
|
37
37
|
};
|
|
38
38
|
function generateResponseRuleDescription(schema) {
|
|
39
39
|
const fields = Object.entries(schema.shape).map(([key, value]) => {
|
|
40
|
-
const
|
|
40
|
+
const meta = value.meta() ?? {};
|
|
41
41
|
return {
|
|
42
42
|
name: key,
|
|
43
|
-
description:
|
|
43
|
+
description: meta.markdownDescription || meta.title || 'No description',
|
|
44
44
|
};
|
|
45
45
|
});
|
|
46
46
|
const fieldsText = fields
|
|
@@ -37,10 +37,11 @@ exports.EXAMPLES_SRR_BLOCK_LEGACY_CLIENTS_RULE = {
|
|
|
37
37
|
};
|
|
38
38
|
function generateResponseRuleDescription(schema) {
|
|
39
39
|
const fields = Object.entries(schema.shape).map(([key, value]) => {
|
|
40
|
-
|
|
40
|
+
var _a;
|
|
41
|
+
const meta = (_a = value.meta()) !== null && _a !== void 0 ? _a : {};
|
|
41
42
|
return {
|
|
42
43
|
name: key,
|
|
43
|
-
description:
|
|
44
|
+
description: meta.markdownDescription || meta.title || 'No description',
|
|
44
45
|
};
|
|
45
46
|
});
|
|
46
47
|
const fieldsText = fields
|
package/package.json
CHANGED