API generation

This commit is contained in:
delvedor
2020-08-03 12:00:49 +02:00
parent e6f1b645a2
commit 573b29777c
211 changed files with 471 additions and 507 deletions

View File

@ -78,13 +78,13 @@ function buildSearchTemplate (opts) {
}
// check required parameters
if (params.body == null) {
if (params['body'] == null) {
const err = new ConfigurationError('Missing required parameter: body')
return handleError(err, callback)
}
// check required url components
if (params.type != null && (params.index == null)) {
if (params['type'] != null && (params['index'] == null)) {
const err = new ConfigurationError('Missing required parameter of the url: index')
return handleError(err, callback)
}