Skip to content

Change only() to flag instead of alias of valid() #1978

Closed
@hueniverse

Description

@hueniverse

Before, only(1) was an alias to valid(1). This changes it to a flag where Joi.allow(1).only() is the same as Joi.valid(1).

Metadata

Metadata

Assignees

Labels

breaking changesChange that can breaking existing code

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions