You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User story.
As a user, I want to enforce all message payloads to always contain a JSON object as the top-level message payload.
Describe the solution you'd like
I want this rule to be part of the built-in ruleset.
Additional context
The way I am currently enforcing it is through the rule:
rules:
...asyncapi-message-payload-must-have-root-level-object:
description: Message payloads must at the root be an objectgiven: $.channels.[*][subscribe,publish].message..payloadseverity: errorthen:
function: schemafunctionOptions:
schema:
properties:
type:
const: "object"
The text was updated successfully, but these errors were encountered:
User story.
As a user, I want to enforce all message payloads to always contain a JSON object as the top-level message payload.
Describe the solution you'd like
I want this rule to be part of the built-in ruleset.
Additional context
The way I am currently enforcing it is through the rule:
The text was updated successfully, but these errors were encountered: