You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ProjectLabel objects are not JSON serializable聽#1116
You can always request the .attributes of an objects. That should be json serializable, but I guess it would make sense for all projects to be serializable.
Btw. your GitLab version is not supported by python-gitlab and it's dangerous to use. No security whatsoever, all vulnerabilities of it are public. You should upgrade to 13.0.0
@max-wittig Thanks for the solution on .attributes and yes a "builtin" solution would be nicer
Agree for the GitLab version but this is a corporate internal-only use forge pending upgrade to 13.X pending (long-due) hardware migration (always the same music it seems).
Activity
max-wittig commentedon Jun 15, 2020
You can always request the
.attributesof an objects. That should be json serializable, but I guess it would make sense for all projects to be serializable.Btw. your GitLab version is not supported by python-gitlab and it's dangerous to use. No security whatsoever, all vulnerabilities of it are public. You should upgrade to 13.0.0
MatthieuPERIN commentedon Jun 15, 2020
@max-wittig Thanks for the solution on
.attributesand yes a "builtin" solution would be nicerAgree for the GitLab version but this is a corporate internal-only use forge pending upgrade to 13.X pending (long-due) hardware migration (always the same music it seems).
max-wittig commentedon Jun 15, 2020
@MatthieuPERIN Maybe you should raise some security concerns and include this page with all vulnabilities 馃槃 https://hackerone.com/gitlab/hacktivity
[-]ProjetcLabel object are not JSON serializable[/-][+]ProjectLabel objects are not JSON serializable[/+]JohnVillalovos commentedon Feb 2, 2022
I have proposed #1872 that would allow you to serialize the objects.
If merged it would allow:
Maybe ignore this for now as I was not aware of
attributesproperty...feat: add `asdict()` and `to_json()` methods to Gitlab Objects
feat: add `asdict()` and `to_json()` methods to Gitlab Objects
feat: add `asdict()` and `to_json()` methods to Gitlab Objects
feat: add `asdict()` and `to_json()` methods to Gitlab Objects
feat: add `asdict()` and `to_json()` methods to Gitlab Objects
feat: add `asdict()` and `to_json()` methods to Gitlab Objects
feat: add `asdict()` and `to_json()` methods to Gitlab Objects
feat: add `asdict()` and `to_json()` methods to Gitlab Objects
feat: add `asdict()` and `to_json()` methods to Gitlab Objects