Skip to content

Conversation

fekynko
Copy link
Contributor

@fekynko fekynko commented Aug 12, 2025

Resolves #187

@fekynko fekynko requested a review from nstdio August 22, 2025 07:52
Copy link
Collaborator

@nstdio nstdio left a comment

Choose a reason for hiding this comment

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

Thanks for bearing with me addressing previous comments. We are almost there

@Builder
@Accessors(fluent = true)
@Getter
public class JsonbExtractorSupport implements JsonbExtractor {
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe final as well?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, can we use record here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

with record im unable to use initilizing expressions with default values for lombok builder as it is now:

@Builder.Default
private final String pathExists = JsonbConfiguration.DEFAULT.pathExists()

Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess this would address that https://stackoverflow.com/a/76107286

@fekynko fekynko requested a review from nstdio August 28, 2025 07:07
/**
* jsonb expression configuration
*/
public interface JsonbConfiguration {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we really need it be an interface?
At the first glance I'm unable to see what benefit, flexibility or extensibility we gain by enabling client code to implement this interface. The configuration part is done via JsonbConfigurationSupport and that's that. Perhaps we should rename JsonbConfigurationSupport to JsonbConfiguration and remove the interface? wdyt?

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.

allow to customize json search function
3 participants