Title: Validate existing ci yml seems to be not implemented · Issue #3260 · python-gitlab/python-gitlab · GitHub
Open Graph Title: Validate existing ci yml seems to be not implemented · Issue #3260 · python-gitlab/python-gitlab
X Title: Validate existing ci yml seems to be not implemented · Issue #3260 · python-gitlab/python-gitlab
Description: Description of the problem, including code/CLI snippet It seems that existing config validation is not implemented (at least I haven't found it in the source code), but the documentation doesn't say it explicitly. While this curl call wo...
Open Graph Description: Description of the problem, including code/CLI snippet It seems that existing config validation is not implemented (at least I haven't found it in the source code), but the documentation doesn't sa...
X Description: Description of the problem, including code/CLI snippet It seems that existing config validation is not implemented (at least I haven't found it in the source code), but the documentation doesn&...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/3260
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Validate existing ci yml seems to be not implemented","articleBody":"## Description of the problem, including code/CLI snippet\n\nIt seems that _existing config validation_ is not implemented (at least I haven't found it in the source code), but the [documentation](https://python-gitlab.readthedocs.io/en/stable/gl_objects/ci_lint.html) doesn't say it explicitly.\n\nWhile this curl call works:\n\n```bash\n$ curl --header \"Private-Token: ${MY_CI_TOKEN}\" https://${MY_GITLAB_HOST}/api/v4/projects/${MY_PROJECT_ID}/ci/lint?content_ref=${MYREF}\n```\n\nThis code doesn't:\n\n```python\nfrom gitlab import Gitlab\ng = Gitlab(my_gitlab_host, private_token=my_ci_token)\np = g.projects.get(my_project_id)\np.ci_lint.validate({\"content_ref\": myref})\n```\n\n## Expected Behavior\n\nIf I pass only `content_ref` instead of `content`, the same GET would be called as in the curl above according to the [GitLab documentation](https://docs.gitlab.com/api/lint/#validate-an-existing-cicd-configuration).\n\n## Actual Behavior\n\nIt executes _new config validation_ as specified [here](https://docs.gitlab.com/api/lint/#validate-a-new-cicd-configuration), sends a POST call, then throws `AttributeError: Missing attributes: content`\n\n## Specifications\n\n - python-gitlab version: v6.3.0\n - Gitlab server version (or gitlab.com): v14.7.6\n","author":{"url":"https://github.com/gridranger","@type":"Person","name":"gridranger"},"datePublished":"2025-09-09T10:17:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3260/python-gitlab/issues/3260"}
| 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:bbbf613c-e55d-5be3-8f13-25ca2d15059d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AF0:1BA1D5:3D69503:55AE10D:69713231 |
| html-safe-nonce | 1dd25bce8dc7119e1dd6ed38d8f6af0929a1e10470b78f2d3bd26c874ede8367 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUYwOjFCQTFENTozRDY5NTAzOjU1QUUxMEQ6Njk3MTMyMzEiLCJ2aXNpdG9yX2lkIjoiNzExNzg2NzUwNDA1NDEyMTAwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 01cf3c88a4a8b8af7d3c8a9f8a7451a79cd2dcc53fc1a52afc7dbbe89b1598f2 |
| hovercard-subject-tag | issue:3397741501 |
| 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/3260/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ceae7168ac25a32a1903f775c610d162a9b4813727e038b17b0a7faada050cd7/python-gitlab/python-gitlab/issues/3260 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ceae7168ac25a32a1903f775c610d162a9b4813727e038b17b0a7faada050cd7/python-gitlab/python-gitlab/issues/3260 |
| og:image:alt | Description of the problem, including code/CLI snippet It seems that existing config validation is not implemented (at least I haven't found it in the source code), but the documentation doesn't sa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gridranger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0c91dba94f720b71e069760db74b45f0f69e50caa632dc4e976d5bf46c8242ee |
| 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 | e6c1902093917264567791cc30776acd1b2490c9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width