tobyink / p5-json-schema

1 stars 4 forks source link

Running regex changes behavior of validation #10

Open tobyink opened 3 years ago

tobyink commented 3 years ago

Migrated from rt.cpan.org #91328 (status was 'new')

Requestors:

Attachments:

From mstemm@cloudmark.com on 2013-12-11 18:44:56 :

The attached script shows a problem where executing a regex changes the behavior of a previously created JSON::Schema object.

The script creates a validator, validates a json string, executes a regex, and then validates the string again. For some reason, running the regex causes the second validation to fail.

Perhaps there's some predefined variable that is mistakenly being overridden by executing the regex?

Let me know if you need any more information.