diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html index 0561b46c4..2c3b5cfac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html @@ -2350,10 +2350,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/c3d97bbbee47ac9449ae90feef71586f3809a141/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/be5744249a732e76125982e34c621fad6593ba9c/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java index d8fc7be1b..f02026874 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfoXpackSecurity.java @@ -60,6 +60,7 @@ */ @JsonpDeserializable public class NodeInfoXpackSecurity implements JsonpSerializable { + @Nullable private final NodeInfoXpackSecuritySsl http; private final String enabled; @@ -74,7 +75,7 @@ public class NodeInfoXpackSecurity implements JsonpSerializable { private NodeInfoXpackSecurity(Builder builder) { - this.http = ApiTypeHelper.requireNonNull(builder.http, this, "http"); + this.http = builder.http; this.enabled = ApiTypeHelper.requireNonNull(builder.enabled, this, "enabled"); this.transport = builder.transport; this.authc = builder.authc; @@ -86,8 +87,9 @@ public static NodeInfoXpackSecurity of(Function implements ObjectBuilder { + @Nullable private NodeInfoXpackSecuritySsl http; private String enabled; @@ -170,15 +175,15 @@ public static class Builder extends WithJsonObjectBuilderBase private NodeInfoXpackSecurityAuthc authc; /** - * Required - API name: {@code http} + * API name: {@code http} */ - public final Builder http(NodeInfoXpackSecuritySsl value) { + public final Builder http(@Nullable NodeInfoXpackSecuritySsl value) { this.http = value; return this; } /** - * Required - API name: {@code http} + * API name: {@code http} */ public final Builder http( Function> fn) { diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/model/BehaviorsTest.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/model/BehaviorsTest.java index 5de55665b..eca28c1a3 100644 --- a/java-client/src/test/java/co/elastic/clients/elasticsearch/model/BehaviorsTest.java +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/model/BehaviorsTest.java @@ -20,19 +20,17 @@ package co.elastic.clients.elasticsearch.model; import co.elastic.clients.elasticsearch._types.ErrorCause; -import co.elastic.clients.elasticsearch._types.FieldSort; import co.elastic.clients.elasticsearch._types.FieldValue; import co.elastic.clients.elasticsearch._types.GeoLocation; import co.elastic.clients.elasticsearch._types.GeoShapeRelation; import co.elastic.clients.elasticsearch._types.SortOptions; import co.elastic.clients.elasticsearch._types.SortOptionsBuilders; import co.elastic.clients.elasticsearch._types.SortOrder; -import co.elastic.clients.elasticsearch._types.query_dsl.FunctionScoreQuery; -import co.elastic.clients.elasticsearch._types.query_dsl.MultiValueMode; import co.elastic.clients.elasticsearch._types.query_dsl.Query; import co.elastic.clients.elasticsearch._types.query_dsl.ShapeQuery; import co.elastic.clients.elasticsearch._types.query_dsl.TermQuery; import co.elastic.clients.json.JsonData; +import co.elastic.clients.testkit.ModelTestCase; import co.elastic.clients.util.MapBuilder; import org.junit.jupiter.api.Test;