Finish JSON validator, add debug out.
diff --git a/testing/cper-test.c b/testing/cper-test.c
index ca698b3..d5e8f5b 100644
--- a/testing/cper-test.c
+++ b/testing/cper-test.c
@@ -22,7 +22,8 @@
     if (argc >= 3)
     {
         printf("Validating output with specification %s...\n", argv[2]);
-        char* error_message = malloc(300);
+        validate_schema_debug_enable();
+        char* error_message = malloc(JSON_ERROR_MSG_MAX_LEN);
         if (!validate_schema_from_file(argv[2], ir, error_message))
         {
             printf("Validation failed: %s\n", error_message);