-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decode_json_field: do not process arrays when flag not set #11318
decode_json_field: do not process arrays when flag not set #11318
Conversation
@@ -199,6 +199,53 @@ func TestTargetRootOption(t *testing.T) { | |||
assert.Equal(t, expected.String(), actual.String()) | |||
} | |||
|
|||
func TestArrayWithArraysDisabled(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind adding test cases for decoding array when process_array
is set to true? Also, it would be nice to see tests for max_depth
. The coverage of decode_json_fields
is pretty thin. :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just the changelog needs a newline like @kvch suggests.
When using arrays with decode_json_processor array is decoded even though
ProcessArray
configuration is set tofalse
With input and
ProcessArray
set tofalse
:Current behavior
Expected behavior:
Fixes #11314