Use ECMA-262 validator when requested#272
Conversation
|
Cool. Thanks a lot for your contribution. |
|
I have released 1.0.35 and added a document on how to choose the regex library. Please review the document and make changes if necessary. Thanks. https://github.com/networknt/json-schema-validator/blob/master/doc/ecma-262.md |
|
It would be good to add these new additions as separate repo instead of adding dependencies to the core lib. (especially when it requires 3rd party lib and is an optional feature) Adding dependencies would need lot of security reviews in a large organization and it slows down the adoption of new releases. Although we won't use this new lib, we had to get it reviewed as it is now a dependency for this core validator. |
|
@SridharSubramaniam per standard the library should use ECMA-262 compatible regex, while That library provide compliance and everything is quite good. For example, BTW, it's theoretically possible to use @stevehu Please, make a decision, I'll provide a patch for it if needed. |
|
@SridharSubramaniam I totally understand your concerns and want to make sure that can help to smooth the upgrade process. As @eirnym mentioned, it is OK with your organization if we change the dependency to |
|
@stevehu Yes, thank you |
|
@stevehu I submitted 1.0.36 for review - waiting for review. Will update based on the outcome.. probably a couple of days out. Will get back. thanks! |
Add ECMA-262 regex check support for
pattern.Fixes #15