public int getNumberOfErrors() {
        return errors.size();
    }
@Test
    void testErrorsEmpty() {
        assertEquals(0, new JsonValidationException(null, null, new Exception()).getNumberOfErrors());
    }