Fix: '' value behavior in field_reference validator#2
Merged
kares merged 6 commits intologstash-plugins:mainfrom Dec 6, 2021
Merged
Fix: '' value behavior in field_reference validator#2kares merged 6 commits intologstash-plugins:mainfrom
kares merged 6 commits intologstash-plugins:mainfrom
Conversation
yaauie
reviewed
Dec 2, 2021
lib/logstash/plugin_mixins/validator_support/field_reference_validation_adapter.rb
Outdated
Show resolved
Hide resolved
…alidation_adapter.rb Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Maintain compatibility with LS 7.x on LS 6.x when an empty value is passed to a field_reference validator, sample use-case:
config :headers_target, :validate => :field_referencedescribed_class.new("headers_target" => '')leads to a validation error when the mixin implementation is used (on 6.x)this incompatibility surfaced at logstash-plugins/logstash-input-imap#55 🔴 failing 6.x build