pydantic-core icon indicating copy to clipboard operation
pydantic-core copied to clipboard

Fix serialize_as_any with recursive ref

Open nix010 opened this issue 1 year ago • 1 comments

BaseModel.model_dump[_xxx](serialize_as_any = True) breaks with models with recursive attribute types (not values) https://github.com/pydantic/pydantic/issues/9670

Related issue number

fix https://github.com/pydantic/pydantic/issues/9670

Checklist

  • [ ] Unit tests for the changes exist
  • [ ] Documentation reflects the changes where applicable
  • [ ] Pydantic tests pass with this pydantic-core (except for expected changes)
  • [ ] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

nix010 avatar Jul 01 '24 12:07 nix010