Skip to content

v4.0.0

Compare
Choose a tag to compare
@WaleedAshraf WaleedAshraf released this 22 May 12:14
· 15 commits to master since this release
34ef690

Breaking:

  • "should" replaced with "must" in the error messages, as per in AJV

New / Improvements:

  • Support AsyncAPI schema v2.4.0
  • Added validateByMessageId() method, which only requires key and value. To use this method, your AsyncAPI schema should be >= 2.4.0. messageId should be defined in schema as per AsyncAPI 2.4.0 schema definition.
  • msgIdentifier option is only required if you use .validate() method.
  • You can use both validateByMessageId() and validate() methods if your AsyncAPI schema version is >= 2.4.0
  • Start using ajv-formats for custom formats.