Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return Promise.reject(
new Error(
`Please provide the schema HRN by schemaDetailsRequest.withScema()`
)
);
}
const hrnStr = hrn.toString();
const request = await RequestFactory.create(
"artifact",
this.apiVersion,
this.settings
).catch(error => Promise.reject(error));
return ArtifactApi.getSchemaUsingGET(request, {
schemaHrn: hrnStr
}).catch(() => Promise.reject(`Cannot get schema details: ${hrnStr}`));
}