Re: [Dev] APIM React UI input validation

2019-08-26 Thread Tanya Madurapperuma
On Mon, Aug 26, 2019 at 9:44 PM Suranee Gomez  wrote:

> This is fine to use, as long as you replicate the copyright line and the
> text, in the license.txt or any attribution files. You can release under
> any license you choose.
>
Thank you !
+1 for Joi.

Thanks,
Tanya

>
> Thanks,
> Su
>
> Suranee Gomez
> Lead Legal Officer
>
> WSO2
> Phone: +94777119120
> Web: http://wso2.com
>
> Lean . Enterprise . Middleware
> 
>
>
> On Mon, Aug 26, 2019 at 4:43 PM Tanya Madurapperuma 
> wrote:
>
>> Isn't the second point in the license [1] of Joi is problematic?
>>
>>
>>- *Redistributions in binary form must reproduce the above copyright
>>notice, this list of conditions and the following disclaimer in the
>>documentation and/or other materials provided with the distribution.*
>>
>>
>> [looping Suranee for her input]
>> [1] https://github.com/hapijs/joi/blob/master/LICENSE.md
>>
>> Thanks.
>> Tanya
>>
>> On Mon, Aug 26, 2019 at 4:27 PM Chanaka Jayasena 
>> wrote:
>>
>>> +1 for using Joi. One of the reasons we couldn't go with most of the
>>> libraries out there is they are wrapping input elements with there own
>>> components. This lib doesn't seem to have that problem.
>>>
>>> thanks,
>>> Chanaka
>>>
>>> On Fri, Aug 23, 2019 at 12:44 PM Kasun Thennakoon 
>>> wrote:
>>>
 Hi All,

 So far we have been doing the validation manually in ad-hoc manner. It
 seems that this approach is not scalable. For example, We had to write URL
 , email , ip address etc validation patterns manually.
 So I think it's better to integrate a third-party library that is
 dedicated to the validation task.
 So we explored the available libraries and found these widely adopted
 libraries.

- Joi[1][2]
- Validator.js[3]
- V8n[4]

 ... many more [4]

 The above top 3 picks are pure validation libraries, Not related to
 ReactJs.

 Out of those, IMO Joi[1] fits with our requirements well.
 Here is a sample implementation
 [5] with material UI
 elements.

 Please give your feedback.

 [1]: https://github.com/hapijs/joi
 [2]: https://github.com/hapijs/joi/blob/master/LICENSE.md
 [3]: https://github.com/validatorjs/validator.js
 [4]: https://github.com/imbrn/v8n
 [5]: https://codesandbox.io/s/stoic-mcnulty-9kcmj

 --
 *Kasun Thennakoon* | Senior Software Engineer | WSO2 Inc.
 (m) +94 711661919 | (w) +94 11 214 5345 | (e) kasu...@wso2.com
 GET INTEGRATION AGILE
 Integration Agility for Digitally Driven Business

>>>
>>>
>>> --
>>> *Chanaka Jayasena* | Technical Lead | WSO2 Inc.
>>> (m) +94 77 44 64 00 6 | (w) 0112 145 345 | (e) chan...@wso2.com
>>> GET INTEGRATION AGILE
>>> Integration Agility for Digitally Driven Business
>>>
>>
>>
>> --
>> *Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
>> (m) +94718184439 | (e) ta...@wso2.com
>>
>> 
>>
>>
>>

-- 
*Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
(m) +94718184439 | (e) ta...@wso2.com


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM React UI input validation

2019-08-26 Thread Tanya Madurapperuma
Isn't the second point in the license [1] of Joi is problematic?


   - *Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.*


[looping Suranee for her input]
[1] https://github.com/hapijs/joi/blob/master/LICENSE.md

Thanks.
Tanya

On Mon, Aug 26, 2019 at 4:27 PM Chanaka Jayasena  wrote:

> +1 for using Joi. One of the reasons we couldn't go with most of the
> libraries out there is they are wrapping input elements with there own
> components. This lib doesn't seem to have that problem.
>
> thanks,
> Chanaka
>
> On Fri, Aug 23, 2019 at 12:44 PM Kasun Thennakoon 
> wrote:
>
>> Hi All,
>>
>> So far we have been doing the validation manually in ad-hoc manner. It
>> seems that this approach is not scalable. For example, We had to write URL
>> , email , ip address etc validation patterns manually.
>> So I think it's better to integrate a third-party library that is
>> dedicated to the validation task.
>> So we explored the available libraries and found these widely adopted
>> libraries.
>>
>>- Joi[1][2]
>>- Validator.js[3]
>>- V8n[4]
>>
>> ... many more [4]
>>
>> The above top 3 picks are pure validation libraries, Not related to
>> ReactJs.
>>
>> Out of those, IMO Joi[1] fits with our requirements well.
>> Here is a sample implementation
>> [5] with material UI
>> elements.
>>
>> Please give your feedback.
>>
>> [1]: https://github.com/hapijs/joi
>> [2]: https://github.com/hapijs/joi/blob/master/LICENSE.md
>> [3]: https://github.com/validatorjs/validator.js
>> [4]: https://github.com/imbrn/v8n
>> [5]: https://codesandbox.io/s/stoic-mcnulty-9kcmj
>>
>> --
>> *Kasun Thennakoon* | Senior Software Engineer | WSO2 Inc.
>> (m) +94 711661919 | (w) +94 11 214 5345 | (e) kasu...@wso2.com
>> GET INTEGRATION AGILE
>> Integration Agility for Digitally Driven Business
>>
>
>
> --
> *Chanaka Jayasena* | Technical Lead | WSO2 Inc.
> (m) +94 77 44 64 00 6 | (w) 0112 145 345 | (e) chan...@wso2.com
> GET INTEGRATION AGILE
> Integration Agility for Digitally Driven Business
>


-- 
*Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
(m) +94718184439 | (e) ta...@wso2.com


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM React UI input validation

2019-08-26 Thread Chanaka Jayasena
+1 for using Joi. One of the reasons we couldn't go with most of the
libraries out there is they are wrapping input elements with there own
components. This lib doesn't seem to have that problem.

thanks,
Chanaka

On Fri, Aug 23, 2019 at 12:44 PM Kasun Thennakoon  wrote:

> Hi All,
>
> So far we have been doing the validation manually in ad-hoc manner. It
> seems that this approach is not scalable. For example, We had to write URL
> , email , ip address etc validation patterns manually.
> So I think it's better to integrate a third-party library that is
> dedicated to the validation task.
> So we explored the available libraries and found these widely adopted
> libraries.
>
>- Joi[1][2]
>- Validator.js[3]
>- V8n[4]
>
> ... many more [4]
>
> The above top 3 picks are pure validation libraries, Not related to
> ReactJs.
>
> Out of those, IMO Joi[1] fits with our requirements well.
> Here is a sample implementation
> [5] with material UI
> elements.
>
> Please give your feedback.
>
> [1]: https://github.com/hapijs/joi
> [2]: https://github.com/hapijs/joi/blob/master/LICENSE.md
> [3]: https://github.com/validatorjs/validator.js
> [4]: https://github.com/imbrn/v8n
> [5]: https://codesandbox.io/s/stoic-mcnulty-9kcmj
>
> --
> *Kasun Thennakoon* | Senior Software Engineer | WSO2 Inc.
> (m) +94 711661919 | (w) +94 11 214 5345 | (e) kasu...@wso2.com
> GET INTEGRATION AGILE
> Integration Agility for Digitally Driven Business
>


-- 
*Chanaka Jayasena* | Technical Lead | WSO2 Inc.
(m) +94 77 44 64 00 6 | (w) 0112 145 345 | (e) chan...@wso2.com
GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM React UI input validation

2019-08-26 Thread Dushan Silva
On Mon, Aug 26, 2019 at 12:21 PM Dushan Silva  wrote:

> adding @APIM Team 
>
> On Mon, Aug 26, 2019 at 12:20 PM Dushan Silva  wrote:
>
>> Hi Kasun,
>> I'm +1 for using joi. It seems very versatile and fits our needs
>> perfectly. One Suggestion I would like to add is that since in joi we will
>> be defining an object schema first , I think its better to maintain these
>> schemas separately in a separate folder. This will be much easier to find
>> and maintain rather than defining these schemas within the components.
>> Since joi is just pure Javascript I think will be easily achievable.
>>
>> Thanks
>>
>> On Fri, Aug 23, 2019 at 12:44 PM Kasun Thennakoon 
>> wrote:
>>
>>> Hi All,
>>>
>>> So far we have been doing the validation manually in ad-hoc manner. It
>>> seems that this approach is not scalable. For example, We had to write URL
>>> , email , ip address etc validation patterns manually.
>>> So I think it's better to integrate a third-party library that is
>>> dedicated to the validation task.
>>> So we explored the available libraries and found these widely adopted
>>> libraries.
>>>
>>>- Joi[1][2]
>>>- Validator.js[3]
>>>- V8n[4]
>>>
>>> ... many more [4]
>>>
>>> The above top 3 picks are pure validation libraries, Not related to
>>> ReactJs.
>>>
>>> Out of those, IMO Joi[1] fits with our requirements well.
>>> Here is a sample implementation
>>> [5] with material UI
>>> elements.
>>>
>>> Please give your feedback.
>>>
>>> [1]: https://github.com/hapijs/joi
>>> [2]: https://github.com/hapijs/joi/blob/master/LICENSE.md
>>> [3]: https://github.com/validatorjs/validator.js
>>> [4]: https://github.com/imbrn/v8n
>>> [5]: https://codesandbox.io/s/stoic-mcnulty-9kcmj
>>>
>>> --
>>> *Kasun Thennakoon* | Senior Software Engineer | WSO2 Inc.
>>> (m) +94 711661919 | (w) +94 11 214 5345 | (e) kasu...@wso2.com
>>> GET INTEGRATION AGILE
>>> Integration Agility for Digitally Driven Business
>>>
>>
>>
>> --
>> Best Regards
>> Dushan Silva
>> Software Engineer
>>
>> *WSO2, Inc. *
>>
>> lean . enterprise . middleware
>> Mob: +94 774 979042
>>
>
>
> --
> Best Regards
> Dushan Silva
> Software Engineer
>
> *WSO2, Inc. *
>
> lean . enterprise . middleware
> Mob: +94 774 979042
>


-- 
Best Regards
Dushan Silva
Software Engineer

*WSO2, Inc. *

lean . enterprise . middleware
Mob: +94 774 979042
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM React UI input validation

2019-08-26 Thread Dushan Silva
adding @APIM Team 

On Mon, Aug 26, 2019 at 12:20 PM Dushan Silva  wrote:

> Hi Kasun,
> I'm +1 for using joi. It seems very versatile and fits our needs
> perfectly. One Suggestion I would like to add is that since in joi we will
> be defining an object schema first , I think its better to maintain these
> schemas separately in a separate folder. This will be much easier to find
> and maintain rather than defining these schemas within the components.
> Since joi is just pure Javascript I think will be easily achievable.
>
> Thanks
>
> On Fri, Aug 23, 2019 at 12:44 PM Kasun Thennakoon 
> wrote:
>
>> Hi All,
>>
>> So far we have been doing the validation manually in ad-hoc manner. It
>> seems that this approach is not scalable. For example, We had to write URL
>> , email , ip address etc validation patterns manually.
>> So I think it's better to integrate a third-party library that is
>> dedicated to the validation task.
>> So we explored the available libraries and found these widely adopted
>> libraries.
>>
>>- Joi[1][2]
>>- Validator.js[3]
>>- V8n[4]
>>
>> ... many more [4]
>>
>> The above top 3 picks are pure validation libraries, Not related to
>> ReactJs.
>>
>> Out of those, IMO Joi[1] fits with our requirements well.
>> Here is a sample implementation
>> [5] with material UI
>> elements.
>>
>> Please give your feedback.
>>
>> [1]: https://github.com/hapijs/joi
>> [2]: https://github.com/hapijs/joi/blob/master/LICENSE.md
>> [3]: https://github.com/validatorjs/validator.js
>> [4]: https://github.com/imbrn/v8n
>> [5]: https://codesandbox.io/s/stoic-mcnulty-9kcmj
>>
>> --
>> *Kasun Thennakoon* | Senior Software Engineer | WSO2 Inc.
>> (m) +94 711661919 | (w) +94 11 214 5345 | (e) kasu...@wso2.com
>> GET INTEGRATION AGILE
>> Integration Agility for Digitally Driven Business
>>
>
>
> --
> Best Regards
> Dushan Silva
> Software Engineer
>
> *WSO2, Inc. *
>
> lean . enterprise . middleware
> Mob: +94 774 979042
>


-- 
Best Regards
Dushan Silva
Software Engineer

*WSO2, Inc. *

lean . enterprise . middleware
Mob: +94 774 979042
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM React UI input validation

2019-08-26 Thread Dushan Silva
Hi Kasun,
I'm +1 for using joi. It seems very versatile and fits our needs perfectly.
One Suggestion I would like to add is that since in joi we will be defining
an object schema first , I think its better to maintain these schemas
separately in a separate folder. This will be much easier to find and
maintain rather than defining these schemas within the components. Since
joi is just pure Javascript I think will be easily achievable.

Thanks

On Fri, Aug 23, 2019 at 12:44 PM Kasun Thennakoon  wrote:

> Hi All,
>
> So far we have been doing the validation manually in ad-hoc manner. It
> seems that this approach is not scalable. For example, We had to write URL
> , email , ip address etc validation patterns manually.
> So I think it's better to integrate a third-party library that is
> dedicated to the validation task.
> So we explored the available libraries and found these widely adopted
> libraries.
>
>- Joi[1][2]
>- Validator.js[3]
>- V8n[4]
>
> ... many more [4]
>
> The above top 3 picks are pure validation libraries, Not related to
> ReactJs.
>
> Out of those, IMO Joi[1] fits with our requirements well.
> Here is a sample implementation
> [5] with material UI
> elements.
>
> Please give your feedback.
>
> [1]: https://github.com/hapijs/joi
> [2]: https://github.com/hapijs/joi/blob/master/LICENSE.md
> [3]: https://github.com/validatorjs/validator.js
> [4]: https://github.com/imbrn/v8n
> [5]: https://codesandbox.io/s/stoic-mcnulty-9kcmj
>
> --
> *Kasun Thennakoon* | Senior Software Engineer | WSO2 Inc.
> (m) +94 711661919 | (w) +94 11 214 5345 | (e) kasu...@wso2.com
> GET INTEGRATION AGILE
> Integration Agility for Digitally Driven Business
>


-- 
Best Regards
Dushan Silva
Software Engineer

*WSO2, Inc. *

lean . enterprise . middleware
Mob: +94 774 979042
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM React UI input validation

2019-08-23 Thread Kasun Thennakoon
Hi All,

So far we have been doing the validation manually in ad-hoc manner. It
seems that this approach is not scalable. For example, We had to write URL
, email , ip address etc validation patterns manually.
So I think it's better to integrate a third-party library that is dedicated
to the validation task.
So we explored the available libraries and found these widely adopted
libraries.

   - Joi[1][2]
   - Validator.js[3]
   - V8n[4]

... many more [4]

The above top 3 picks are pure validation libraries, Not related to ReactJs.

Out of those, IMO Joi[1] fits with our requirements well.
Here is a sample implementation
[5] with material UI elements.

Please give your feedback.

[1]: https://github.com/hapijs/joi
[2]: https://github.com/hapijs/joi/blob/master/LICENSE.md
[3]: https://github.com/validatorjs/validator.js
[4]: https://github.com/imbrn/v8n
[5]: https://codesandbox.io/s/stoic-mcnulty-9kcmj

-- 
*Kasun Thennakoon* | Senior Software Engineer | WSO2 Inc.
(m) +94 711661919 | (w) +94 11 214 5345 | (e) kasu...@wso2.com
GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev