From d5dbf0862bf6a1ab0c22f90c9a5383f19fff988b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ro=C5=BCek?= Date: Mon, 6 Jun 2022 17:33:42 +0200 Subject: [PATCH] chore(rulesets): describe input --- .../functions/asyncApi2MessageExamplesValidation.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/rulesets/src/asyncapi/functions/asyncApi2MessageExamplesValidation.ts b/packages/rulesets/src/asyncapi/functions/asyncApi2MessageExamplesValidation.ts index 064c8d021..e6c89978f 100644 --- a/packages/rulesets/src/asyncapi/functions/asyncApi2MessageExamplesValidation.ts +++ b/packages/rulesets/src/asyncapi/functions/asyncApi2MessageExamplesValidation.ts @@ -54,7 +54,17 @@ function validate( export default createRulesetFunction( { - input: null, + input: { + type: 'object', + properties: { + name: { + type: 'string', + }, + summary: { + type: 'string', + }, + }, + }, options: null, }, function asyncApi2MessageExamplesValidation(targetVal, _, ctx) {