API generation

This commit is contained in:
delvedor
2019-02-18 12:59:29 +01:00
parent 7e5bbad5c2
commit 92c23232a7
2 changed files with 0 additions and 26 deletions

View File

@ -86,19 +86,6 @@ function buildCreate (opts) {
)
}
// check required url components
if (params['id'] != null && (params['type'] == null || params['index'] == null)) {
return callback(
new ConfigurationError('Missing required parameter of the url: type, index'),
result
)
} else if (params['type'] != null && (params['index'] == null)) {
return callback(
new ConfigurationError('Missing required parameter of the url: index'),
result
)
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
return callback(

View File

@ -90,19 +90,6 @@ function buildGetSource (opts) {
)
}
// check required url components
if (params['id'] != null && (params['type'] == null || params['index'] == null)) {
return callback(
new ConfigurationError('Missing required parameter of the url: type, index'),
result
)
} else if (params['type'] != null && (params['index'] == null)) {
return callback(
new ConfigurationError('Missing required parameter of the url: index'),
result
)
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
return callback(