Skip to content

Commit

Permalink
Add a no-empty-object endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Jan 23, 2025
1 parent 34897e3 commit 576438c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

/**
* Count search results. Get the number of documents matching a query.
*
*
* @see <a href="../doc-files/api-spec.html#_global.count.Request">API
* specification</a>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,8 @@ protected static void setupExplainRequestDeserializer(ObjectDeserializer<Explain
}
return params;

}, SimpleEndpoint.emptyMap(), true, ExplainResponse._DESERIALIZER);
}, SimpleEndpoint.emptyMap(), SimpleEndpoint.nonEmptyJsonObject(SimpleEndpoint.returnSelf()),
ExplainResponse._DESERIALIZER);

/**
* Create an "{@code explain}" endpoint.
Expand Down

0 comments on commit 576438c

Please sign in to comment.