Skip to content

Commit

Permalink
Merge pull request #27 from NowanIlfideme/feature/update-yaml-sort-de…
Browse files Browse the repository at this point in the history
…faults

Update yaml sort default to use field order
  • Loading branch information
NowanIlfideme authored Jul 11, 2022
2 parents 96fb188 + 6e199e6 commit 4f698b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pydantic_yaml/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion pydantic_yaml/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.1"
__version__ = "0.8.0"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.7.1
current_version = 0.8.0
commit = False
tag = False
files = ./pydantic_yaml/version.py
Expand Down

0 comments on commit 4f698b6

Please sign in to comment.