Skip to content

[7.x] Add multiple validators to FieldMapper.Parameter#77091

Merged
elasticsearchmachine merged 1 commit intoelastic:7.xfrom
csoulios:param-multi-validators-7.x
Aug 31, 2021
Merged

[7.x] Add multiple validators to FieldMapper.Parameter#77091
elasticsearchmachine merged 1 commit intoelastic:7.xfrom
csoulios:param-multi-validators-7.x

Conversation

@csoulios
Copy link
Copy Markdown
Contributor

Backports #77073 to 7.x

This PR implements support for multiple validators to a FieldMapper.Parameter.

The Parameter#setValidator method was replaced by Parameter#addValidator that can be called multipled times
to add validation to a parameter.

All validators of a parameter will be executed in the same order as they have been added and if any of them fails all validation will failed.

This PR implements support for multiple validators to a FieldMapper.Parameter.

The Parameter#setValidator method was replaced by Parameter#addValidator that can be called multipled times
to add validation to a parameter.

All validators of a parameter will be executed in the same order as they have been added and if any of them fails all validation will failed.
@csoulios csoulios added backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v7.16.0 labels Aug 31, 2021
@elasticsearchmachine elasticsearchmachine merged commit 6a88d84 into elastic:7.x Aug 31, 2021
@csoulios csoulios deleted the param-multi-validators-7.x branch August 31, 2021 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants