Skip to content

Custom format validators now have access to the unprocessed properties#301

Open
jmfernandez wants to merge 2 commits intoeverit-org:masterfrom
fairtracks:extended_custom_format
Open

Custom format validators now have access to the unprocessed properties#301
jmfernandez wants to merge 2 commits intoeverit-org:masterfrom
fairtracks:extended_custom_format

Conversation

@jmfernandez
Copy link

There can be some use cases where a custom format validator requires
additional setup values in order to tweak its behaviour. So, now custom
format validator have access to the unprocessed properties in the
JSON Schema context where the subject is being evaluated.

Also, a test has been added to check the new feature

There can be some use cases where a custom format validator requires
additional setup values in order to tweak its behaviour. So, now custom
format validator have access to the unprocessed properties in the
JSON Schema context where the subject is being evaluated.
In order to keep backward compatibility, the new code has
been spread among AbstractFormatValidator, FormatValidator and
ContextualFormatValidator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant