Skip to content

Fix MultiSearchTemplateRequest body #7008

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

Merged
merged 4 commits into from
Nov 24, 2022
Merged

Fix MultiSearchTemplateRequest body #7008

merged 4 commits into from
Nov 24, 2022

Conversation

stevejgordon
Copy link
Contributor

@stevejgordon stevejgordon commented Nov 24, 2022

Fixes #7006.

The code generator was correctly generating a Union type based on the specification but was not handling the MIME type for this request and, as a result, did not implement IStreamSerializable to produce the NDJSON body. This PR removes the code-generated type and adds a new manual type which aligns with the SearchRequestItem for MSearch. The type name was also changed to be more descriptive.

@stevejgordon stevejgordon added backport 8.5 8.x Relates to a 8.x client version Breaking labels Nov 24, 2022
@stevejgordon stevejgordon merged commit 8b712cf into main Nov 24, 2022
@stevejgordon stevejgordon deleted the multisearch-template branch November 24, 2022 11:30
github-actions bot pushed a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete
github-actions bot pushed a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete
github-actions bot pushed a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete
github-actions bot pushed a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete
github-actions bot pushed a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete
github-actions bot pushed a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete
github-actions bot pushed a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete
stevejgordon added a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete

Co-authored-by: Steve Gordon <[email protected]>
stevejgordon added a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete

Co-authored-by: Steve Gordon <[email protected]>
stevejgordon added a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete

Co-authored-by: Steve Gordon <[email protected]>
stevejgordon added a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete

Co-authored-by: Steve Gordon <[email protected]>
stevejgordon added a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete

Co-authored-by: Steve Gordon <[email protected]>
stevejgordon added a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete

Co-authored-by: Steve Gordon <[email protected]>
stevejgordon added a commit that referenced this pull request Nov 24, 2022
* Manually define the RequestItem for MultiSearchTemplateRequests

- Manual type implements IStreamSerializable to support NDJSON.
- Add serialization test

* Update integration workflow stack version

* Add release notes

* Make headings discrete

Co-authored-by: Steve Gordon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.x Relates to a 8.x client version Breaking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MultiSearchTemplateRequest body is incorrectly generated
1 participant