Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correcting the response format for ingest simulate #3640

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

masseyke
Copy link
Member

This is an update to #3400. The simulate ingest response is fairly different from the simulate pipeline response, so I've pulled it into its own object.
Specifically, simulate ingest has an executed_pipelines array, and it does not have several fields that the simulate pipeline response has.

Copy link
Contributor

Following you can find the validation results for the API you have changed.

API Status Request Response
simulate.ingest 🔴 11/12 12/12

You can validate this API yourself by using the make validate target.

@masseyke masseyke requested a review from pquentin January 28, 2025 21:47
Copy link
Contributor

Following you can find the validation results for the API you have changed.

API Status Request Response
simulate.ingest 🔴 11/12 12/12

You can validate this API yourself by using the make validate target.

@l-trotta l-trotta self-assigned this Jan 31, 2025

export class Response {
body: { docs: SimulateDocumentResult[] }
}

export class SimulateDocumentResult {
Copy link
Contributor

Choose a reason for hiding this comment

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

we try to avoid duplicate names since it can break certain clients, could we rename this to something else? like SimulateIngestDocumentResult

*
* @behavior_meta AdditionalProperties fieldname=metadata description="Additional metadata"
*/
export class DocumentSimulation
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, coule be IngestDocumentSimulation?

/**
*
*/
_version?: Stringified<VersionNumber>
Copy link
Contributor

Choose a reason for hiding this comment

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

is _version actually nullable? checking the server code it seems like it's always added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants