Title: Arrays are not sent correctly due to not using [] after variable name · Issue #1419 · python-gitlab/python-gitlab · GitHub
Open Graph Title: Arrays are not sent correctly due to not using [] after variable name · Issue #1419 · python-gitlab/python-gitlab
X Title: Arrays are not sent correctly due to not using [] after variable name · Issue #1419 · python-gitlab/python-gitlab
Description: Arrays are not sent correctly due to not using [] after variable name GitLab's API documentation: https://docs.gitlab.com/ee/api/#array array types import_sources is a parameter of type array: curl --request POST --header "PRIVATE-TOKEN:...
Open Graph Description: Arrays are not sent correctly due to not using [] after variable name GitLab's API documentation: https://docs.gitlab.com/ee/api/#array array types import_sources is a parameter of type array: curl...
X Description: Arrays are not sent correctly due to not using [] after variable name GitLab's API documentation: https://docs.gitlab.com/ee/api/#array array types import_sources is a parameter of type array: ...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1419
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Arrays are not sent correctly due to not using [] after variable name","articleBody":"Arrays are not sent correctly due to not using `[]` after variable name\r\n\r\nGitLab's API documentation: https://docs.gitlab.com/ee/api/#array\r\n\r\n### array types\r\n\r\n`import_sources` is a parameter of type array:\r\n\r\n```\r\ncurl --request POST --header \"PRIVATE-TOKEN: \u003cyour_access_token\u003e\" \\\r\n-d \"import_sources[]=github\" \\\r\n-d \"import_sources[]=bitbucket\" \\\r\n\"https://gitlab.example.com/api/v4/some_endpoint\"\r\n```\r\n\r\nSo when we send _array_ values we most append `[]` to the array's variable name. \r\n\r\nThis has caused issues like:\r\n * https://github.com/python-gitlab/python-gitlab/issues/1407\r\n * https://github.com/python-gitlab/python-gitlab/issues/1256\r\n\r\n","author":{"url":"https://github.com/JohnVillalovos","@type":"Person","name":"JohnVillalovos"},"datePublished":"2021-04-27T00:49:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1419/python-gitlab/issues/1419"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cb3cf2e5-ca75-f798-5f59-de708c38600a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C55E:881FC:22A73FF:2F5E5DD:69735EBF |
| html-safe-nonce | 2490f82ea98c69daa59d08aa76bf41f4788078b953d795093c43a969a43b8ecb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTVFOjg4MUZDOjIyQTczRkY6MkY1RTVERDo2OTczNUVCRiIsInZpc2l0b3JfaWQiOiI2OTQwMTg2NjY1NTIzODMwNDYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3454d7ba8c6c1022a777998aba82a7339d1ec4076c56153bba6bc4467328053d |
| hovercard-subject-tag | issue:868334836 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-gitlab/python-gitlab/1419/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3003ac9563e5f2c4aae8f4cad3fb2fa2c590e71e6e12fd9cd0fd787596420c55/python-gitlab/python-gitlab/issues/1419 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3003ac9563e5f2c4aae8f4cad3fb2fa2c590e71e6e12fd9cd0fd787596420c55/python-gitlab/python-gitlab/issues/1419 |
| og:image:alt | Arrays are not sent correctly due to not using [] after variable name GitLab's API documentation: https://docs.gitlab.com/ee/api/#array array types import_sources is a parameter of type array: curl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JohnVillalovos |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4cf879a11b0a28a85543899a36aaee9ec9ca2fb7bedad86c0da5731193c95f01 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-gitlab/python-gitlab git https://github.com/python-gitlab/python-gitlab.git |
| octolytics-dimension-user_id | 28886265 |
| octolytics-dimension-user_login | python-gitlab |
| octolytics-dimension-repository_id | 8077625 |
| octolytics-dimension-repository_nwo | python-gitlab/python-gitlab |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8077625 |
| octolytics-dimension-repository_network_root_nwo | python-gitlab/python-gitlab |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fe8be790582ef7a55477ce1918ac0ed16b106d31 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width