-
Notifications
You must be signed in to change notification settings - Fork 84
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
base: main
Are you sure you want to change the base?
Conversation
Following you can find the validation results for the API you have changed.
You can validate this API yourself by using the |
Following you can find the validation results for the API you have changed.
You can validate this API yourself by using the |
|
||
export class Response { | ||
body: { docs: SimulateDocumentResult[] } | ||
} | ||
|
||
export class SimulateDocumentResult { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
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.