Message pacts against AsyncAPI
A provider that sends messages can now be checked against its consumers the bi-directional way. Publish its AsyncAPI 2.x or 3.x document as its provider contract, and every consumer's message pact is compared with it as soon as either side publishes; the verdict goes to the matrix and can-i-deploy. See Message pacts.
- Same endpoint.
PUT …/pact-broker/contracts/provider/<provider>/version/<version>withcontractType: asyncapi, or with nocontractTypeat all. - Each message is matched to the document. By the topic or channel in its metadata, by its name, and only among the messages the provider sends. The result says which message it was compared with.
- Contents, headers and content type. The contents are checked against the payload, the metadata against the message headers, and Pact matching rules as for HTTP pacts.
- Nothing passes silently. An Avro payload, a synchronous message or an HTTP interaction is listed as not compared, with the reason. See Comparison rules.
