diff options
| author | John L. Villalovos <john@sodarock.com> | 2022-01-30 10:44:08 -0800 |
|---|---|---|
| committer | John L. Villalovos <john@sodarock.com> | 2022-01-30 10:44:08 -0800 |
| commit | a57334f1930752c70ea15847a39324fa94042460 (patch) | |
| tree | 8a5032d8ead259ff3d78615bc51140a488f882b6 /gitlab/v4/objects/projects.py | |
| parent | 7a13b9bfa4aead6c731f9a92e0946dba7577c61b (diff) | |
| download | gitlab-a57334f1930752c70ea15847a39324fa94042460.tar.gz | |
chore: create new ArrayAttribute class
Create a new ArrayAttribute class. This is to indicate types which are
sent to the GitLab server as arrays
https://docs.gitlab.com/ee/api/#array
At this stage it is identical to the CommaSeparatedListAttribute class
but will be used later to support the array types sent to GitLab.
This is the second step in a series of steps of our goal to add full
support for the GitLab API data types[1]:
* array
* hash
* array of hashes
Step one was: commit 5127b1594c00c7364e9af15e42d2e2f2d909449b
[1] https://docs.gitlab.com/ee/api/#encoding-api-parameters-of-array-and-hash-types
Related: #1698
Diffstat (limited to 'gitlab/v4/objects/projects.py')
| -rw-r--r-- | gitlab/v4/objects/projects.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py index 354e56e..23f3d3c 100644 --- a/gitlab/v4/objects/projects.py +++ b/gitlab/v4/objects/projects.py @@ -125,7 +125,7 @@ class ProjectGroupManager(ListMixin, RESTManager): "shared_min_access_level", "shared_visible_only", ) - _types = {"skip_groups": types.CommaSeparatedListAttribute} + _types = {"skip_groups": types.ArrayAttribute} class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTObject): |
