Peter Nagel

Results comments of Peter Nagel

I would like `Joi.string().valid('AA','BB')` to be able to accept the following values: `['aa','aA', Aa', ...]` without having to expand the array to cover all string cases.

So that works for the validation piece, but I lose the functionality of the resulting value being uppercase after validation takes place. Any way to have both?

@Marsup - running the code below still returns the non-uppercased value: ``` javascript var Joi = require('joi'); var schema = { key: Joi.string().insensitive().uppercase().concat(Joi.string().valid(['AA', 'BB'])) }; Joi.validate({ key: 'aa' }, schema,...

No problem - I have a non-Joi workaround for now

I agree with you that rejecting is the correct behavior. I just wanted to raise the issue since it was a breaking change in a patch version and didn't see...

I've created a PR for the documentation update I would be happy to add tests for it, but I would need some guidance on the correct way to do that...

I'm working with @leore. We resolved the issue. Here is the working config: ``` database: { client: config.get('DATABASE:CLIENT'), connection: { host: config.get('DATABASE:HOST'), user: config.get('DATABASE:USER'), password: config.get('DATABASE:PASSWORD'), database: config.get('DATABASE:DATABASE'), port: config.get('DATABASE:PORT'),...

I tried it as well - getting the same error. `validateMigrationList` is getting called with `all` as an array of arrays and `completed` is `undefined`. In Version 2.4.1 of lodash...

@bavidar @hueniverse - this curl command demonstrates the issue we are receiving. curl command: ``` curl -O -k https://api.lob.com/v1/addresses?count=100 -u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: ``` Response: ``` % Total % Received % Xferd...

@pity - Did you get this working? If you have an example I would love to see it. I'm having some trouble getting the headers correct with Server.inject