public ProcessingReport validateSpec(String spec, HyscaleSpecType type) throws HyscaleException {
        return JsonSchemaValidator.validate(spec,getSchema(type));
    }
validates whether the given string satisfies respective reference schema.

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