-
Notifications
You must be signed in to change notification settings - Fork 80
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
Fix indices.delete_alias response #2951
base: main
Are you sure you want to change the base?
Conversation
I can't find this in the sever, AcknowledgeResponse only has one field. I think the problem is the fact that the body changes when there's an error, so for a normal response it's:
while when there's an error it's:
in the spec we just map the first one, because the second case is the exception case (the server returns 404) so what java does is that it returns the error body in the exception message. |
Actually, we also get responses like this one:
|
ooh that's why: it's a subclass! we have to map this |
|
Following you can find the validation results for the API you have changed.
You can validate this API yourself by using the |
bf808a6
to
237cf4c
Compare
@pquentin sorry I forgot about this, rebased it + added a commit with what I think is the solution |
Following you can find the validation results for the API you have changed.
You can validate this API yourself by using the |
This regressed between March 25th and April 15th, back when recording examples wasn't stable. Unfortunately, 22 days worth of commits is a lot: elastic/elasticsearch@e9fcb0a...d3e0ec1. If we find where this is set, we could consider asking the Elasticsearch team to not do this. It's not helpful, as
acknowledged
is already set to true.Another option: I could only change the delete_alias body instead of affecting all APIs that use AcknowledgedResponseBase.