We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e8f294 commit e3234c7Copy full SHA for e3234c7
lib/utils/config_validator/index.ts
@@ -51,6 +51,8 @@ export const validateDatafile = function(datafile: unknown): any {
51
if (SUPPORTED_VERSIONS.indexOf(datafile['version' as keyof unknown]) === -1) {
52
throw new OptimizelyError(INVALID_DATAFILE_VERSION, datafile['version' as keyof unknown]);
53
}
54
+ } else {
55
+ throw new OptimizelyError(INVALID_DATAFILE_MALFORMED);
56
57
58
return datafile;
0 commit comments