public ProcessingReport validateSpec(File specFile,HyscaleSpecType type) throws HyscaleException {
        try {
            return validateSpec(FileUtils.readFileToString(specFile,ToolConstants.CHARACTER_ENCODING),type);
        } catch (IOException e) {
            LOGGER.error(e.getMessage());
            HyscaleException ex = new HyscaleException(e,CommonErrorCode.FAILED_TO_READ_FILE,specFile.getPath());
            throw ex;
        }
    }
validates whether the given spec file satisfies respective reference schema.

@param specFile
@param type
@return ProcessingReport
@throws HyscaleException
service-spec/schema-validator/src/main/java/io/hyscale/schema/validator/SchemaValidator.java