From d1a0b3621d9c1f58178276a28d2e7f7c2265f4c7 Mon Sep 17 00:00:00 2001 From: Matatjahu Date: Fri, 23 Sep 2022 15:05:36 +0200 Subject: [PATCH] feat(rulesets): update harness asyncapi test --- .../scenarios/asyncapi2-streetlights.scenario | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/test-harness/scenarios/asyncapi2-streetlights.scenario b/test-harness/scenarios/asyncapi2-streetlights.scenario index 32d2f7957..5b2b12383 100644 --- a/test-harness/scenarios/asyncapi2-streetlights.scenario +++ b/test-harness/scenarios/asyncapi2-streetlights.scenario @@ -217,11 +217,12 @@ module.exports = asyncapi; {bin} lint {document} --ruleset "{asset:ruleset}" ====stdout==== {document} - 1:1 warning asyncapi-tags AsyncAPI object must have non-empty "tags" array. - 2:6 warning asyncapi-info-contact Info object must have "contact" object. info - 45:13 warning asyncapi-operation-description Operation "description" must be present and non-empty string. channels.smartylighting/streetlights/1/0/event/{streetlightId}/lighting/measured.publish - 57:15 warning asyncapi-operation-description Operation "description" must be present and non-empty string. channels.smartylighting/streetlights/1/0/action/{streetlightId}/turn/on.subscribe - 68:15 warning asyncapi-operation-description Operation "description" must be present and non-empty string. channels.smartylighting/streetlights/1/0/action/{streetlightId}/turn/off.subscribe - 79:15 warning asyncapi-operation-description Operation "description" must be present and non-empty string. channels.smartylighting/streetlights/1/0/action/{streetlightId}/dim.subscribe - -✖ 6 problems (0 errors, 6 warnings, 0 infos, 0 hints) + 1:1 warning asyncapi-tags AsyncAPI object must have non-empty "tags" array. + 1:11 information asyncapi-latest-version The latest version is not used. You should update to the "2.4.0" version. asyncapi + 2:6 warning asyncapi-info-contact Info object must have "contact" object. info + 45:13 warning asyncapi-operation-description Operation "description" must be present and non-empty string. channels.smartylighting/streetlights/1/0/event/{streetlightId}/lighting/measured.publish + 57:15 warning asyncapi-operation-description Operation "description" must be present and non-empty string. channels.smartylighting/streetlights/1/0/action/{streetlightId}/turn/on.subscribe + 68:15 warning asyncapi-operation-description Operation "description" must be present and non-empty string. channels.smartylighting/streetlights/1/0/action/{streetlightId}/turn/off.subscribe + 79:15 warning asyncapi-operation-description Operation "description" must be present and non-empty string. channels.smartylighting/streetlights/1/0/action/{streetlightId}/dim.subscribe + +✖ 7 problems (0 errors, 6 warnings, 1 info, 0 hints)