Skip to content

Enhancement: Sparse fields - Support search sideloads - #111

Merged
rafaeljusto merged 2 commits into
mainfrom
fix/search-sideloads
Aug 7, 2026
Merged

Enhancement: Sparse fields - Support search sideloads#111
rafaeljusto merged 2 commits into
mainfrom
fix/search-sideloads

Conversation

@rafaeljusto

Copy link
Copy Markdown
Contributor

Description

Mark SearchResponse and CommentSideload, and wire SearchRequestFilters.Fields so each sideloaded entity accepts a fields[...] selection. The comment enum derives from CommentSideload, whose content is serialised as "title".

Add a sparsefields:skip marker for fields that hold relationships rather than entities (SearchResponse.Items).

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Testing

  • Tests pass locally (go test -v ./...)
  • Added/updated tests for new functionality

Checklist

  • Code follows project style guidelines
  • Self-reviewed the code
  • Added necessary documentation
  • No new warnings or errors

Mark `SearchResponse` and `CommentSideload`, and wire
`SearchRequestFilters.Fields` so each sideloaded entity accepts a
`fields[...]` selection. The comment enum derives from `CommentSideload`,
whose content is serialized as "title".

Add a `sparsefields:skip` marker for fields that hold relationships
rather than entities (`SearchResponse.Items`).
@rafaeljusto
rafaeljusto requested a review from a team as a code owner August 6, 2026 19:01
@rafaeljusto
rafaeljusto merged commit bb3e668 into main Aug 7, 2026
3 checks passed
@rafaeljusto
rafaeljusto deleted the fix/search-sideloads branch August 7, 2026 09:39
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