API: PUT /projects/:id fails when only ci_config_path is specified
Summary
An HTTP PUT request to /projects/:id fails with the following message when only ci_config_path
is specified:
PUT https://salsa.debian.org/api/v4/projects/7734: 400 {error: jobs_enabled, resolve_outdated_diff_discussions, container_registry_enabled, default_branch, description, issues_enabled, lfs_enabled, merge_requests_enabled, name, only_allow_merge_if_all_discussions_are_resolved, only_allow_merge_if_pipeline_succeeds, path, printing_merge_request_link_enabled, public_builds, request_access_enabled, shared_runners_enabled, snippets_enabled, tag_list, visibility, wiki_enabled are missing, at least one parameter must be provided}
Specifying e.g. shared_runners_enabled makes the request work.
Steps to reproduce
- Send an HTTP PUT request to /projects/:id with only
ci_config_path
specified
What is the current bug behavior?
An error occurs.
What is the expected correct behavior?
The project’s ci_config_path
setting is updated.