Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing UserSettings.get #94

Open
iagocanalejas opened this issue Mar 17, 2025 · 0 comments
Open

Failing UserSettings.get #94

iagocanalejas opened this issue Mar 17, 2025 · 0 comments

Comments

@iagocanalejas
Copy link

Calling to UserSettings.get will raise this validation error.

pydantic_core._pydantic_core.ValidationError: 8 validation errors for UserSettings
user_data.activity_level
  Input should be a valid string [type=string_type, input_value=8, input_type=int]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
user_data.weather_location.use_fixed_location
  Input should be a valid boolean [type=bool_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/bool_type
user_data.weather_location.latitude
  Input should be a valid number [type=float_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/float_type
user_data.weather_location.longitude
  Input should be a valid number [type=float_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/float_type
user_data.weather_location.location_name
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
user_data.weather_location.iso_country_code
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
user_data.weather_location.postal_code
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
user_data.golf_distance_unit
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant