Describe the bug
The User response object does not match the real world/documentation
To Reproduce
Steps to reproduce the behavior:
art = Artifactory(url="ARTIFACTORY_URL", auth=('USERNAME','PASSWORD_OR_API_KEY'), api_version=1)
art.users.list()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/dakky/Library/Caches/pypoetry/virtualenvs/artifactory-config-Xr84_Zh7-py3.12/lib/python3.12/site-packages/pyartifactory/objects/user.py", line 63, in list
return [SimpleUser(**user) for user in response.json()]
^^^^^^^^^^^^^^^^^^
File "/Users/dakky/Library/Caches/pypoetry/virtualenvs/artifactory-config-Xr84_Zh7-py3.12/lib/python3.12/site-packages/pydantic/main.py", line 192, in __init__
self.__pydantic_validator__.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for SimpleUser
status
Field required [type=missing, input_value={'name': 'admin', 'uri': ...n', 'realm': 'internal'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.8/v/missing
Expected behavior
List of Users is returned
Environment:
OS: Linux/MacOS
pyartifactory version: 2.3.0
Python version: 3.12.0
Artifactory version: 7.77.12
Additional context
There is something quite fucked up concerning the states/doc of the object
Describe the bug The User response object does not match the real world/documentation
To Reproduce Steps to reproduce the behavior:
Expected behavior List of Users is returned
Environment:
Additional context There is something quite fucked up concerning the states/doc of the object
Response from the api:
Official doc as of today:
Code in pyartifactory:
These 3 "states" does not match 😢