Skip to content
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

Fix: json parsing compatibility + freeze event.original value #38

Merged
merged 6 commits into from Jul 1, 2021

Conversation

kares
Copy link
Contributor

@kares kares commented Jun 29, 2021

In 1.0.0 the mixin shipped with a JSON parsing helper, this method did not parse empty strings in a compatible way.
The desired behavior is to parse "" as a nil and raise no error while doing so (to behave like Event.from_json impl).

Pulling in logstash-plugins/logstash-mixin-event_support#3 on top of #37

Also added value.dup.freeze for event.original's value.

NOTE: we haven't released 3.1.0 yet - this PR will be part of the same release.

@kares kares changed the title Deps: pull in json parsing compatibility fix Fix: json parsing compatibility + freeze event.original value Jul 1, 2021
@andsel andsel self-requested a review July 1, 2021 08:59
Copy link

@andsel andsel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only left a minor comment to better describe the change in the changelog

CHANGELOG.md Outdated Show resolved Hide resolved
@kares kares merged commit d2b10ed into logstash-plugins:master Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants