{"repo":"WaleedAshraf/asyncapi-validator","free":true,"listed":false,"github":"https://github.com/WaleedAshraf/asyncapi-validator","clone":"git clone https://github.com/WaleedAshraf/asyncapi-validator.git","description":"Message validator for Kafka/RabbitMQ/Anything through AsyncAPI schema","language":"JavaScript","stars":51,"topics":["asyncapi","asyncapi-specification","api","kafka","rabbitmq","validator","openapi"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"asyncapi-validator Validate messages through AsyncApi Note: This package only support AsyncApi Schema v2.0.0 and above. npm i asyncapi-validator Features - Validate your messages against your AsyncApi Document - Validate your AsyncApi Document against AsyncApi Schema definition - Load your AsyncApi Schema from local file or any URL - Supports AsyncApi in JSON and YAML format - Supports AsyncApi v2.0.0 and above Content - Class Methods - AsyncApiValidator.fromSource() - Options - Instance Methods / Properties - .validate() - .validateByMessageId() - deprecated - .schema - Example usage with .validate() method - Example usage with .validateByMessageId() method - Errors - Error Example Class Methods AsyncApiValidator.fromSource() Options value type description ----- ---- ---- --- msgIdentifier string required Name of the parameter whose value will be used as \"key\" in .validate() method. Recommendation is to use \"name\" as described in message-object. You can also use Specification Extensions. ignoreArray boolean optional If true , then if schema is defined as an array and payload is an object, then payload will be placed inside an array before validation. path string optional Path to the AsyncApi document. Instance Methods and Properties .validate() You should provide msgIdentifier in AsyncApiValidator options . .validateByMessageId() - deprecated This method is deprecated as messageId was removed in AsyncApi v3.0.0. More details here asyncapi/spec/issues/978 . Here messageId sho","default_branch":null,"files":null,"tree":[],"storefront":"/r/WaleedAshraf","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/WaleedAshraf/asyncapi-validator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}