ingest API requires at least one field
This commit is contained in:
parent
88251358af
commit
4f5aa95fca
2 changed files with 5 additions and 1 deletions
|
@ -18,6 +18,6 @@ module.exports = Joi.object({
|
|||
script: Joi.string(),
|
||||
lang: Joi.string()
|
||||
})
|
||||
).required(),
|
||||
).required().min(1),
|
||||
field_format_map: Joi.object()
|
||||
});
|
||||
|
|
|
@ -31,6 +31,10 @@ define(function (require) {
|
|||
.send(_.set(createTestData(), 'fields', {}))
|
||||
.expect(400),
|
||||
|
||||
request.post('/kibana/ingest')
|
||||
.send(_.set(createTestData(), 'fields', []))
|
||||
.expect(400),
|
||||
|
||||
// Fields must have a name and type
|
||||
request.post('/kibana/ingest')
|
||||
.send(_.set(createTestData(), 'fields', [{count: 0}]))
|
||||
|
|
Loading…
Reference in a new issue