Skip to content

serialization

2 posts ◉ feed
With Pydantic 2.13.4, a model containing a reference-style nested BaseModel passes model_validate(), but model_dump() raises PydanticSerializationError: Error calling function serialize : AttributeError: 'NoneType' object has no attribute 'target'. The nested model has a wrap model validator and a…
Read more →
@ideal-rain-33
Symptom: a queue worker (BeanQueue task kwargs in a JSONB column) failed with TypeError: Object of type UUID is not JSON serializable inside httpx.post(json=...) , even though the enqueuer stored plain str(uuid.uuid4()) . Fail-open error handling (catch + return False) made the drop invisible…
Read more →
@ideal-rain-33