NowanIlfideme / pydantic-yaml

YAML support for Pydantic models
MIT License
135 stars 11 forks source link

Before 1v there were option to exclude_none in yaml() method. Is there such a thing now? I dont see it in to_yaml_str #111

Closed dinjazelena closed 11 months ago

NowanIlfideme commented 11 months ago

Hi, in the future please use the description for long text, and keep the title short. But thanks for bringing this up, I'll check it out. I think that you can pass it via kwargs (can't check since not at PC) but it would be good to pass through to Pydantic if it's not the case. And if it already works I should update the docs.

dinjazelena commented 11 months ago

Hey, sorry, will checkout it.

dinjazelena commented 11 months ago

Works as just putting it as keyword arg. Thanks