Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credit Card returning null when valid #948

Closed
chamini2 opened this issue Jul 15, 2016 · 0 comments
Closed

Credit Card returning null when valid #948

chamini2 opened this issue Jul 15, 2016 · 0 comments
Labels
bug Bug or defect
Milestone

Comments

@chamini2
Copy link
Contributor

Context

  • node version: v4.4.3
  • joi version: 9.0.0
  • used with (hapi, standalone, ...): hapi

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

Describe your issue here, include schemas and inputs you are validating if needed.

let schema = Joi.string().creditCard()
schema.validate('4111111111111111')

Which result you had ?

{ error: null, value: null }

What did you expect ?

{ error: null, value: '4111111111111111' }
@chamini2 chamini2 changed the title Credit Card returning null when correct Credit Card returning null when valid Jul 15, 2016
@Marsup Marsup closed this as completed in 8c84c90 Jul 15, 2016
Marsup added a commit that referenced this issue Jul 15, 2016
Returning credit card number when is valid, fixes #948
@Marsup Marsup added the bug Bug or defect label Jul 15, 2016
@Marsup Marsup self-assigned this Jul 15, 2016
@Marsup Marsup added this to the 9.0.1 milestone Jul 15, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 10, 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

No branches or pull requests

2 participants