Skip to content

GH-679: Add jakarta validation suggestions filter#685

Open
michal-luczak wants to merge 4 commits into
Rollczi:masterfrom
michal-luczak:suggestions-validation-filter
Open

GH-679: Add jakarta validation suggestions filter#685
michal-luczak wants to merge 4 commits into
Rollczi:masterfrom
michal-luczak:suggestions-validation-filter

Conversation

@michal-luczak

@michal-luczak michal-luczak commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Add filtering non valid suggestions based on jakarta validation

private final SuggesterRegistry<SENDER> suggesterRegistry;
private final EventPublisher publisher;

public SuggestionService(ParserRegistry<SENDER> parserRegistry, SuggesterRegistry<SENDER> suggesterRegistry, ValidatorService<SENDER> validatorService, EventPublisher publisher) {

@michal-luczak michal-luczak Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
public SuggestionService(ParserRegistry<SENDER> parserRegistry, SuggesterRegistry<SENDER>suggesterRegistry, EventPublisher publisher) {

(?)

@michal-luczak michal-luczak marked this pull request as ready for review June 19, 2026 21:50
@Rollczi

Rollczi commented Jun 30, 2026

Copy link
Copy Markdown
Owner

I think this might be inefficient because it is called every time the player generates suggestions

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.

2 participants