Skip to content

adding validation for unnecessary arguments in primary types.#1054

Merged
Marsup merged 1 commit intohapijs:masterfrom
ar4mirez:enhance/no-allowed-args
Dec 4, 2016
Merged

adding validation for unnecessary arguments in primary types.#1054
Marsup merged 1 commit intohapijs:masterfrom
ar4mirez:enhance/no-allowed-args

Conversation

@ar4mirez
Copy link
Contributor

@ar4mirez ar4mirez commented Dec 4, 2016

solution: throw an error when argument is passed in types that don't needed.
example: Joi.string('argument') => throws 'Joi.string() does not allow arguments.'
issue: #1009

solution: throw an error when argument is passed in types that don't needed.
example: `Joi.string('argument') => throws 'Joi.string() does not allow arguments.'`
@Marsup Marsup added the bug Bug or defect label Dec 4, 2016
@Marsup Marsup self-assigned this Dec 4, 2016
@Marsup Marsup merged commit 9589404 into hapijs:master Dec 4, 2016
@Marsup Marsup added this to the 10.0.3 milestone Dec 4, 2016
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants