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

Revert "Allow single fields in fields and _source parameters" #2341

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented Nov 7, 2023

Reverts #2317. The FieldAndFormat type has a @shortcut_property field which means that if it's a scalar value, it is equivalent to a FieldAndFormat with only field defined. The code generation strategy for Python should be to lift the shortcut property into a union, so that FieldAndFormat becomes Field | FieldAndFormat.

Copy link
Contributor

github-actions bot commented Nov 7, 2023

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

API Status Request Response
msearch 🟢 17/17 16/16
search 🔴 1519/1538 1517/1520

You can validate these APIs yourself by using the make validate target.

Copy link
Contributor

@Anaethelion Anaethelion left a comment

Choose a reason for hiding this comment

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

LGTM

@pquentin pquentin merged commit 3893113 into main Nov 7, 2023
6 checks passed
@pquentin pquentin deleted the revert-2317-single-fields-source branch November 7, 2023 15:13
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.

None yet

2 participants