diff --git a/pydantic_yaml/mixin.py b/pydantic_yaml/mixin.py index b4913ce..200c604 100644 --- a/pydantic_yaml/mixin.py +++ b/pydantic_yaml/mixin.py @@ -115,7 +115,7 @@ def yaml( exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, - sort_keys: bool = True, + sort_keys: bool = False, default_flow_style: Optional[bool] = False, default_style: YamlStyle = None, indent: Optional[bool] = None, @@ -134,7 +134,7 @@ def yaml( Arguments as per `BaseModel.dict()`. sort_keys : bool If True, will sort the keys in alphanumeric order for dictionaries. - Default is True. False will dump in the field definition order. + Default is False, which will dump in the field definition order. default_flow_style : bool or None Whether to use the "flow" style in the dumper. By default, this is False, which uses the "block" style (probably the most familiar to users). diff --git a/pydantic_yaml/version.py b/pydantic_yaml/version.py index a5f830a..777f190 100644 --- a/pydantic_yaml/version.py +++ b/pydantic_yaml/version.py @@ -1 +1 @@ -__version__ = "0.7.1" +__version__ = "0.8.0" diff --git a/setup.cfg b/setup.cfg index 720a68e..bf9e807 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.7.1 +current_version = 0.8.0 commit = False tag = False files = ./pydantic_yaml/version.py