Skip to content

Joi.only is not a function  #2111

@rjdp

Description

@rjdp

Context

  • node version: 10.16.3
  • joi version: 16.0.0
  • environment (node, browser): node
  • used with (hapi, standalone, ...): standalone
  • any other relevant information:

What are you trying to achieve or the steps to reproduce ?

const schema = Joi.only("A").required()

Which result you had ?

TypeError: Joi.only is not a function

What did you expect ?

No exception

Metadata

Metadata

Assignees

Labels

non issueIssue is not a problem or requires changes

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions