async-matrixSourceAsyncMatrixSchemaValidationError

class ValidationError

Raised by Event#valid! when data fails schema validation.

Produces detailed, human-readable error messages that identify the exact key path and offending value.

Schema validation failed for m.room.member event $abc123: - content.membership = "invalid" -- must be one of: ["invite", "join", "knock", "leave", "ban"] - sender is required but missing

Definitions

def initialize(errors, event_type: nil, event_id: nil)

Implementation

def initialize(errors, event_type: nil, event_id: nil)
	@errors     = errors
	@event_type = event_type
	@event_id   = event_id
	super("M_BAD_JSON", build_message)
end