Class AsyncApiParser

java.lang.Object
org.mockserver.async.asyncapi.AsyncApiParser

public class AsyncApiParser extends Object
Parses an AsyncAPI 2.x or 3.x document (JSON or YAML) into an AsyncApiSpec.

Supported structures:

  • AsyncAPI 2.x: channels.<name>.publish|subscribe.message.payload (schema) and channels.<name>.publish|subscribe.message.payload.example or channels.<name>.publish|subscribe.message.examples[].payload
  • AsyncAPI 3.x: channels.<name>.messages.<msgName>.payload (schema) and channels.<name>.messages.<msgName>.examples[].payload or components.messages.<msgName>.examples[].payload
  • Constructor Details

    • AsyncApiParser

      public AsyncApiParser()
  • Method Details