Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
json: true,
body: ummMetadata,
headers: {
Accept: 'application/json',
'Content-type': `application/vnd.nasa.cmr.umm+json;version=${version}`
}
});
if (result.statusCode === 200) {
return true;
}
} catch (e) {
result = e.response;
}
throw new ValidationError(
`Validation was not successful. UMM metadata Object: ${JSON.stringify(ummMetadata)}`
);
}