-
Notifications
You must be signed in to change notification settings - Fork 23
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
catname on the IDS seems to sometimes be an array of strings #113
Conversation
return f.Val | ||
} | ||
|
||
func (f FlexString) Fake(faker *gofakeit.Faker) interface{} { |
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 need to read about what this does. hm
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.
powers the gofakeit stuff for running the integration tests in unpoller/unpoller
types.go
Outdated
|
||
func (f FlexString) MarshalJSON() ([]byte, error) { | ||
// array case | ||
if f.Arr != nil && len(f.Arr) > 1 { |
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 will turn an array into a string if it only has 1 element. Seems fine for now, but something to keep in mind.
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.
alright added a hint here
A discord issue where on the IDS events the
catname
field is now sometimes an array of stringsNow:
Before: