-
Notifications
You must be signed in to change notification settings - Fork 110
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
dynogels.types.uuid() returning an Object #36
Comments
Hi, can you post your |
Wow, straight on it, great work! package.json:
I tried updating both Joi and Dynogels, but the same issue. |
The object shown looks suspiciously like the Joi options object. Can you post an MCVE of the issue? I can't reproduce the behavior on my end; the type works as I would expect: > require('.').types.uuid().validate();
{ error: null, value: '1c6102e1-b896-434e-a9f1-66d7016bc732' } |
I can reproduce those results too:
Outputs: { error: null, value: '421ea917-c879-4d43-9d6b-ee1d72c11a22' } I'll investigate more today and see what I can find. |
Temporarily I've implemented:
and in short-hash.js:
That seems to be working. I'll try to continue debugging the other issue later tomorrow. |
Can reproduce this too on my end from a new install package.json
Any version number I can drop to for the moment? |
Just started having this issue as well on a number of my services:
Looks like joi 9.2.0 gets installed. Locked it into 9.0.4 for a fix. |
you're right, this seems to break the tests too. |
Thanks for your help with this, I've raised an issue asking for help from the |
Reinstalled my node_modules folder for the first time in 17 days and suddenly dynogels.types.uuid() is not returning a UUID, but returning an Object for some strange reason.
I kept receiving the error:
and on further investigation, id looked like:
and my schema file looks like:
Not sure where this has come from and nothing else has changed and it was all previously working very well.
Thanks for the help! 👍
The text was updated successfully, but these errors were encountered: