garth icon indicating copy to clipboard operation
garth copied to clipboard

validation error for UserProfile profile_image_uuid

Open mfrutos opened this issue 1 year ago • 1 comments

When doing garth.UserProfile.get(), I get a validation error due to profile_image_uuid

---------------------------------------------------------------------------
ValidationError                           Traceback (most recent call last)
[<ipython-input-12-ad35c6dfc66a>](https://localhost:8080/#) in <cell line: 1>()
----> 1 garth.UserProfile.get()

1 frames
[/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_dataclasses.py](https://localhost:8080/#) in __init__(__dataclass_self__, *args, **kwargs)
    139         __tracebackhide__ = True
    140         s = __dataclass_self__
--> 141         s.__pydantic_validator__.validate_python(ArgsKwargs(args, kwargs), self_instance=s)
    142 
    143     __init__.__qualname__ = f'{cls.__qualname__}.__init__'

ValidationError: 1 validation error for UserProfile
profile_image_uuid
  Field required [type=missing, input_value=ArgsKwargs((), {'id': 403...: 0, 'user_pro': False}), input_type=ArgsKwargs]
    For further information visit https://errors.pydantic.dev/2.9/v/missing

mfrutos avatar Sep 13 '24 14:09 mfrutos

Same issue here! I also have similar errors with UserSettings, but for UserSettings there are more fields seem problematic. I guess it's less important though.

tcibils avatar Oct 04 '24 18:10 tcibils

going out in the next release: 0.5.0

matin avatar Dec 09 '24 16:12 matin