Skip to content

Support [] as payload validation #3119

Description

@AdriVanHoudt

regarding

payload: Joi.alternatives(Joi.object(), Joi.func()).allow(null, false, true),

now {} works instead of Joi.object() so I would expect [] to work instead of Joi.alternatives().try()
Joi will auto convert it to alternatives so it will work

This would be a trivial PR but still asking first ;)

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions