Skip to content

fix/mget doc id response#105

Merged
davidkelley merged 1 commit intomainfrom
fix/mget-doc-id-response
Mar 4, 2026
Merged

fix/mget doc id response#105
davidkelley merged 1 commit intomainfrom
fix/mget-doc-id-response

Conversation

@davidkelley
Copy link
Owner

Copilot AI review requested due to automatic review settings March 4, 2026 13:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aligns the mget response schema with the intended field naming by returning doc_id (instead of id) for each document in MgetResponse, and updates the OpenAPI spec accordingly.

Changes:

  • Update MgetDoc serialization to emit doc_id (remove serde(rename = "id")).
  • Update openapi.yaml MgetDoc schema to use doc_id and require it.
  • Add a unit test to lock in the doc_id JSON field name.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
searchlite-core/src/api/types.rs Removes id serde rename for MgetDoc and adds a unit test asserting JSON uses doc_id.
openapi.yaml Updates the MgetDoc schema property/required field from id to doc_id.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@davidkelley davidkelley merged commit 244a390 into main Mar 4, 2026
10 checks passed
@davidkelley davidkelley deleted the fix/mget-doc-id-response branch March 4, 2026 13:43
@davidkelley davidkelley linked an issue Mar 4, 2026 that may be closed by this pull request
@davidkelley davidkelley mentioned this pull request Mar 4, 2026
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.

API inconsistency: MgetDoc uses "id" while hits use "doc_id"

2 participants