-
Notifications
You must be signed in to change notification settings - Fork 3
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/relax types #45
base: master
Are you sure you want to change the base?
Fix/relax types #45
Conversation
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.
I added some in-line comments for minor things. The CI failures on Debian are due to syslog-ng/syslog-ng#4585 but there was no release since that so we can ignore them for now.
088570a
to
b486508
Compare
Something very annoying also, is that
This feels more right:
Should we do |
We can. In this case we can probably also add |
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.
This looks good. You suggested relaxing some data types which I am fine with if you want to do it.
You can also rebase this branch on top of master so that CI check it does not break something unexpectedly.
Anyway, LGTM!
I think we need to resolve #44 first as this one depends on (parts of) it |
I updated #44 and it is ready for another review/merging. I see you cherry-picked my commit in this branch, I guess that removing that commit and rebasing on top of master will resolve conflicts. |
In patterndb, an empty string is a valid one
Given `String[1] $id = $title` the rules will always have an id.
``` Wrong match name='apache.query_param', value='', type='null', expected='', expected_type='string' ```
This makes the following invalid (yes, surprisingly it was valid before) : ``` { 'type' => undef } ``` Co-authored-by: Romain Tartière <[email protected]>
Co-authored-by: Romain Tartière <[email protected]>
ecfe3cb
to
51040de
Compare
Done |
We just converted our 632 patterns to the new v5 format.
We ran into a few incompatible changes, and this PR allows all our patterns to work out.
Basically we relax a few type constraints, which are a bit too tight compared to what's allowed in patterndb