-
Notifications
You must be signed in to change notification settings - Fork 74
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
max_score and _score are required (and can be null) #1144
base: main
Are you sure you want to change the base?
Conversation
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.
Blocking as we have discovered that many yaml tests suggest that this property should be optional.
It's weird to not see these fields in the yaml tests as they are always sent by the ES server. This could be related to some lenient behavior of the yaml test engine. Putting this PR on hold for now. |
Following you can find the validation results for the API you have changed.
You can validate this API yourself by using the |
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.
Nearly three years later, YAML test validation no longer suggests those properties should be optional, as 2041/2089 is the current response score.
@Anaethelion @l-trotta @flobernd can you make sure your respective code generators correctly interpret a required |
@swallez I can confirm that the .NET generator converts |
There are few existing mandatory
In any case, since this already exists, I would be in favor of merging anyway. |
that's a no for java, the result here is just |
if java is the only problem I'll assign this one to myself and merge it once I have a fix for it |
Go is in the same state as Java, for this particular case it translates to a |
I believe Java is the only language left here since https://github.com/elastic/elastic-client-generator-go/pull/39 was merged. |
I am still working on this yes |
Follow-up to #1079
The
_score
andmax_score
can be null, but are always present. This PR makes them required.