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
Pydantic 2+ does not allow arbitrary types, so when this lib is consumed, we get a runtime error:
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'cosl.grafana_dashboard.GrafanaDashboard'>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.
Pydantic 2+ does not allow arbitrary types, so when this lib is consumed, we get a runtime error:
cos-lib/src/cosl/grafana_dashboard.py
Line 15 in b15551a
A workaround is to add
to pydantic models that rely on it, but that is not a great solution. Instead we could refactor here into a pydantic base model.
Related: canonical/cos-proxy-operator#131
The text was updated successfully, but these errors were encountered: