Skip to content

RemoteSource requires optional parameters to be set. #152

Closed
@sothawo

Description

@sothawo

When building a reindex request and setting up a co.elastic.clients.elasticsearch.core.reindex.RemoteSource, the client code requires me so set the values for username, password, connectTimeout and socketTimeout, they cannot be null.

This contradicts the description of the reindex request at https://www.elastic.co/guide/en/elasticsearch/reference/7.17/docs-reindex.html#reindex-from-remote where it's stated that the username and password are optional, and for the timeout values gives default values when they are not set.

So I think these values should be nullable when building the request (the timeout values are not the problem, I can provide the defaults there).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SpecificationRelated to the API spec used to generate client code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions