Skip to content

fix(config): apply a property max depth only to the property and its paths - #180

Merged
pdevito3 merged 1 commit into
mainfrom
backport/137
Oct 9, 2026
Merged

pdevito3 merged 1 commit into
mainfrom
backport/137

Conversation

@pdevito3

@pdevito3 pdevito3 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

HasMaxDepth matched every path that starts with the property name, so HasMaxDepth on Address also applied to AddressBackup.State. A path could skip the global MaxPropertyDepth if its name started with a property that has a looser limit. Match the property name or the name followed by a dot.

Behavior change: HasMaxDepth on a property no longer applies to another property whose name starts with the same text. That property uses the global MaxPropertyDepth.

Examples (MaxPropertyDepth = 0, Address has HasMaxDepth(1)):
AddressBackup.State == "x"
before: filters (uses the limit of Address)
after: QueryKitPropertyDepthExceededException
sort AddressBackup.State
before: sorts
after: QueryKitPropertyDepthExceededException
Address.State == "x"
before and after: filters

From #137 on v2.

…paths

HasMaxDepth matched every path that starts with the property name, so HasMaxDepth on Address also applied to AddressBackup.State. A path could skip the global MaxPropertyDepth if its name started with a property that has a looser limit. Match the property name or the name followed by a dot.

Behavior change: HasMaxDepth on a property no longer applies to another property whose name starts with the same text. That property uses the global MaxPropertyDepth.

Examples (MaxPropertyDepth = 0, Address has HasMaxDepth(1)):
  AddressBackup.State == "x"
    before: filters (uses the limit of Address)
    after:  QueryKitPropertyDepthExceededException
  sort AddressBackup.State
    before: sorts
    after:  QueryKitPropertyDepthExceededException
  Address.State == "x"
    before and after: filters

From #137 on v2.
@pdevito3
pdevito3 merged commit 1e733c2 into main Oct 9, 2026
2 checks passed
@pdevito3
pdevito3 deleted the backport/137 branch October 9, 2026 19:55
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.

1 participant