Meilisearch 1.37.0 introduces breaking changes to the experimental network API. We want to update this SDK to be compatible with Meilisearch 1.37.0.
The network objects sent to the PATCH /network route must now contain at least one shard object containing at least one remote when leader is not null.
The network object for routes PATCH /network and GET /network now contains the new field shards, which is an object whose values are shard objects, and keys the name of each shard.
Each shard object contains a single field remotes, which is an array of strings, each string representing the name of an existing remote.
The shard objects in PATCH /network accepts optional fields addRemotes and removeRemotes for convenience:
shard.addRemotes to add these remotes to the list of remotes of a shard.shard.removeRemotes to remove these remotes from the list of remotes of a shard.For more information, refer to the release notes.
update_network_1 YAML key in .code-samples.meilisearch.yaml