Taku Amano

Results 239 comments of Taku Amano

I agree with @yusukebe. I also think it is an interesting idea, but I feel that the cost of commonality outweighs the benefits. We only need a good library and...

It is very good for the framework to have a nice validation library. However, I think that functions should be context object independent if at all possible. I may not...

Oh, sorry, I finally understood what it means to register as middleware using `app.use` when I saw this. ``` app.get('/', validate({ schema }), handler) ``` I'll reconsider for a moment.

I would like the following API. ```typescript import validator from 'middleware/validator' const validatorSearch = validator((v) => [ { rule: v.isAlpha, field: 'query', name: 'q', }, ]) app.get('/', validatorSearch, (c) =>...

@metrue Thank you for your comment! > I think the validation exception handling should be inside the validation middleware itself. or we just simply put them into ctx.validationResult, then in...

Hi @yusukebe I also think it is not a good practice for middleware to add methods to Context object. I agree with the use of helper functions, as in "Firebase...

> We/Middleware developers can provide both patterns, but should we choose one? or both? I think that is what bothers me too. While being able to declare type to values...

@Mathias1111 Thank you for very useful information! > with a width of 512px the captcha works I've found an evil workaround.. ```js if (window.innerWidth > 512) { try { window.innerWidth...