Class AsyncApiSchemaValidator

java.lang.Object
org.mockserver.async.validation.AsyncApiSchemaValidator

public class AsyncApiSchemaValidator extends Object
Validates JSON payloads against an AsyncAPI channel's JSON Schema definition, reusing JsonSchemaValidator from mockserver-core (which uses the com.networknt:json-schema-validator library under the hood).

Used in two contexts:

  1. Validating generated example messages before publishing
  2. Validating consumed/recorded messages from broker subscriptions
  • Constructor Details

    • AsyncApiSchemaValidator

      public AsyncApiSchemaValidator()
    • AsyncApiSchemaValidator

      public AsyncApiSchemaValidator(MockServerLogger mockServerLogger)
      Constructor accepting an external logger instance, consistent with the codebase pattern of injecting or per-instance loggers.
  • Method Details