-
Notifications
You must be signed in to change notification settings - Fork 16
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
Validate atomic fields lengths and max JSON depth with Enrich defaults #151
base: master
Are you sure you want to change the base?
Conversation
b2c9d63
to
d9a624c
Compare
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.
Looks good
|
||
if (unsupportedFields.nonEmpty) | ||
Left(s""" | ||
|Configured atomic fields: ${unsupportedFields.mkString("[", ",", "]")} are not supported. |
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.
Presumably nobody will ever see this error message if field lengths are not configurable?
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.
Yeah I hesitated to remove it. I thought that we might make this configurable one day in Micro and this will become useful. But I'm fine with removing it if you think that I should
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 think it's fine to leave it, for the reasons you say.
d9a624c
to
5c3dae6
Compare
5c3dae6
to
b8aad70
Compare
Use defaults from https://github.com/snowplow/enrich-private/blob/PDP-1583_mico_atomic_lengths/modules/common/src/main/resources/reference.conf#L152-L240