Skip to content

Commit ae97403

Browse files
committed
Update types that need the empty request fix
1 parent 1cdd590 commit ae97403

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/core/CountRequest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
/**
6868
* Count search results. Get the number of documents matching a query.
69-
*
69+
*
7070
* @see <a href="../doc-files/api-spec.html#_global.count.Request">API
7171
* specification</a>
7272
*/
@@ -760,5 +760,6 @@ protected static void setupCountRequestDeserializer(ObjectDeserializer<CountRequ
760760
}
761761
return params;
762762

763-
}, SimpleEndpoint.emptyMap(), true, CountResponse._DESERIALIZER);
763+
}, SimpleEndpoint.emptyMap(), SimpleEndpoint.nonEmptyJsonObject(SimpleEndpoint.returnSelf()),
764+
CountResponse._DESERIALIZER);
764765
}

java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,5 +698,6 @@ protected static void setupValidateQueryRequestDeserializer(ObjectDeserializer<V
698698
}
699699
return params;
700700

701-
}, SimpleEndpoint.emptyMap(), true, ValidateQueryResponse._DESERIALIZER);
701+
}, SimpleEndpoint.emptyMap(), SimpleEndpoint.nonEmptyJsonObject(SimpleEndpoint.returnSelf()),
702+
ValidateQueryResponse._DESERIALIZER);
702703
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package co.elastic.clients.transport.endpoints;
2+
3+
public class SimpleEndpointTest {
4+
}

0 commit comments

Comments
 (0)