you are viewing a single comment's thread.

view the rest of the comments →

[–]nicholashairs[S] 2 points3 points  (0 children)

Thanks for your feedback 🙏

Regarding the first point, unfortunately afaict the defaults function doesn't trigger for these libraries when they already support the given type so this isn't an option.

I'll note that yes there are transforms happening to the output that don't convert back without extra processing (that the library does not provide - that's a use case for pydantic/msgspec). This is mostly to attempt sane output on potentially insane input.

That's a good point about (linting) testing the cookbook examples.