private String getSchemaPath(HyscaleSpecType type){
        StringBuilder schemaPathBuilder = new StringBuilder();
        if(type == HyscaleSpecType.SERVICE){
         schemaPathBuilder.append("/hspec/").append(buildProperties.get(ToolConstants.HSPEC_VERSION)).append("/service-spec.json");
        }else if (type == HyscaleSpecType.PROFILE){
            schemaPathBuilder.append("/hprof/").append(buildProperties.get(ToolConstants.HSPEC_VERSION)).append("/profile-spec.json");
        }
        return schemaPathBuilder.toString();
    }
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