max_score and _score are required (and can be null)#1144
Conversation
delvedor
left a comment
There was a problem hiding this comment.
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 |
pquentin
left a comment
There was a problem hiding this comment.
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 |
|
sorry I forgot, this was fixed in version 9 of the java client! we can finally merge this |
|
Following you can find the validation changes against the target branch for the APIs. No changes detected. You can validate these APIs yourself by using the |
Follow-up to #1079
The
_scoreandmax_scorecan be null, but are always present. This PR makes them required.