yaml tests passing using a personl instance of ES, working on specifying the host/port
This commit is contained in:
8
scripts/generate/js_api/templates/enum.param.tmpl
Normal file
8
scripts/generate/js_api/templates/enum.param.tmpl
Normal file
@ -0,0 +1,8 @@
|
||||
if (_.contains(<%= _.camelCase(name) %>Options, <%= get %>)) {
|
||||
<%= set %> = <%= get %>;
|
||||
} else {
|
||||
throw new TypeError(
|
||||
'Invalid <%= name %>: ' + <%= get %> +
|
||||
' should be one of ' + <%= _.camelCase(name) %>Options.join(', ') + '.'
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user