Skip to content

Introduce PathValidator. - #3551

Open
christophstrobl wants to merge 3 commits into
mainfrom
issue/1365
Open

christophstrobl wants to merge 3 commits into
mainfrom
issue/1365

Conversation

@christophstrobl

@christophstrobl christophstrobl commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Introduce a dedicated validator that can verify and potentially reject a given dot path against the potential navigable paths of an aggregate.

PathValidationRules rules = PathValidationRules.builder()
	.denyAccessTo("**.password")
	.maxSegmentLength(32)
	.build();

PathValidator.validate(User.class, "account.password", rules); // -> PathResolutionException

Simplify Sort validation by checking Order instances against a given ruleset

Sort sort = ...

Sort.validate(Person.class, sort); // predefined ruleset

Sort.validate(User.class, sort, rules -> { // custom rules
	rules.denyAccess("**.password");
});

Closes: #1365

Introduce a dedicated validator that can verify a given dot path against the potential navigable paths of an aggregate.
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.

Provide typed sort support limiting sort fields to the domain model [DATACMNS-907]

3 participants