Skip to content

Resolve filter field names case-insensitively - #242

Closed
awrichar wants to merge 1 commit into
mainfrom
filter-field-case-insensitive
Closed

Resolve filter field names case-insensitively#242
awrichar wants to merge 1 commit into
mainfrom
filter-field-case-insensitive

Conversation

@awrichar

Copy link
Copy Markdown
Contributor

Currently a QueryFields map only supports lowercase field names, because Finalize lowercases the field name before looking it up. Sort, GroupBy and RequiredFields instead match exactly, and silently drop anything else.

With this change, mixed-case filter fields are now declarable.

QueryFields.Resolve matches a field name exactly, then falls back to a case-insensitive match, and returns the name as declared. This applies to filter params as well as sort, group by, and fields.

Currently a QueryFields map only supports lowercase field names, because
Finalize lowercases the field name before looking it up. Sort, GroupBy and
RequiredFields instead match exactly, and silently drop anything else.

With this change, mixed-case filter fields are now declarable.

QueryFields.Resolve matches a field name exactly, then falls back to a
case-insensitive match, and returns the name as declared. This applies
to filter params as well as sort, group by, and fields.
@awrichar
awrichar requested a review from a team as a code owner August 19, 2026 16:59
@awrichar awrichar closed this Aug 19, 2026
@awrichar
awrichar deleted the filter-field-case-insensitive branch August 19, 2026 17:03
@awrichar

Copy link
Copy Markdown
Contributor Author

Replaced by #243

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