Traceback (most recent call last):
File "...", line 30, in <module>
get_latest_artifactory_commit()
File "...", line 19, in get_latest_artifactory_commit
repositories = art.repositories.list()
File "/opt/homebrew/lib/python3.9/site-packages/pyartifactory/objects/repository.py", line 129, in list
return [SimpleRepository(**repository) for repository in response.json()]
File "/opt/homebrew/lib/python3.9/site-packages/pyartifactory/objects/repository.py", line 129, in <listcomp>
return [SimpleRepository(**repository) for repository in response.json()]
File "/opt/homebrew/lib/python3.9/site-packages/pydantic/main.py", line 164, in __init__
__pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 1 validation error for SimpleRepository
type_
Field required [type=missing, input_value={'key': 'PRIVATE_REPO...'packageType': 'Docker'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.4/v/missing
Expected behavior
Should list repositories
Screenshots
N/A
Environment:
OS: macOS
pyartifactory version 2.1.1
2.1.1
Python version, get it with:
python3.9
Additional context
Seems to be a problem when validating SimpleRepository through pydantic but I explicitly passed all the required parameters to the Artifactory contructor, so not sure what 'Field' is 'missing'.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior Should list repositories
Screenshots N/A
Environment:
Additional context Seems to be a problem when validating
SimpleRepository
throughpydantic
but I explicitly passed all the required parameters to theArtifactory
contructor, so not sure what 'Field' is 'missing'.