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

Validate atomic fields lengths and max JSON depth with Enrich defaults #151

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

benjben
Copy link
Contributor

@benjben benjben commented Nov 22, 2024

@benjben benjben force-pushed the PDP-1583_atomic_fields_lengths branch 2 times, most recently from b2c9d63 to d9a624c Compare November 23, 2024 15:03
@benjben benjben changed the title Validate atomic fields lengths with Enrich defaults Validate atomic fields lengths and max JSON depth with Enrich defaults Nov 23, 2024
Copy link
Contributor

@istreeter istreeter left a 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.
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

@benjben benjben force-pushed the PDP-1583_atomic_fields_lengths branch from d9a624c to 5c3dae6 Compare November 27, 2024 07:58
@benjben benjben force-pushed the PDP-1583_atomic_fields_lengths branch from 5c3dae6 to b8aad70 Compare November 27, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants