module GovukSchemas::AssertMatchers
def assert_valid_against_schema(payload, schema_name, schema_type)
def assert_valid_against_schema(payload, schema_name, schema_type) validator = GovukSchemas::Validator.new(schema_name, schema_type, payload) assert validator.valid?, validator.error_message end