public static List<String> validateSchema(JSONObject jsonSubject) {
        try {
            returnSchema().validate(jsonSubject);
        } catch (ValidationException e) {
            return e.getAllMessages();
        } catch (Exception ie) {
            LOGGER.log(Level.WARNING, failureMessage, ie);
            return singletonList("Exception during test" + ie.getMessage());
        }
        return emptyList();
    }
Validates a given jsonObject against the schema generated for the current live jenkins
instance.

<p>Example Usage:</p>
 <pre>{@code
  assertThat(validateSchema(convertYamlFileToJson(this, "invalidSchemaConfig.yml")),
            contains("#/jenkins/numExecutors: expected type: Number, found: String"));
 }</pre>

 <pre>{@code
  assertThat(validateSchema(convertYamlFileToJson(this, "validConfig.yml")),
            empty());
 }</pre>

@param jsonSubject the json object that needs to be validated
@return a list of validation errors, empty list if no errors
test-harness/src/main/java/io/jenkins/plugins/casc/misc/Util.java