diff --git a/HISTORY.rst b/HISTORY.rst index e078c85c..5ba9e2aa 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,19 @@ History ======= +0.23.0 (2024-09-18) +------------------- + +* `#94`_: Allows the ability to define keys in JSON/dataclass + that do not undergo transformation -- credits to `@cquick01`_. + + * ``LetterCase.NONE`` - Performs no conversion on strings. + + * ex: `MY_FIELD_NAME` -> `MY_FIELD_NAME` + +.. _@cquick01: https://github.com/cquick01 +.. _#94: https://github.com/rnag/dataclass-wizard/pull/94 + 0.22.3 (2024-01-29) ------------------- diff --git a/dataclass_wizard/enums.py b/dataclass_wizard/enums.py index 2d2c455a..803cbcd3 100644 --- a/dataclass_wizard/enums.py +++ b/dataclass_wizard/enums.py @@ -27,7 +27,7 @@ class LetterCase(Enum): # Converts strings (generally in camel case) to snake case. # ex: `myFieldName` -> `my_field_name` SNAKE = FuncWrapper(to_snake_case) - # Perfoms no conversion on strings. + # Performs no conversion on strings. # ex: `MY_FIELD_NAME` -> `MY_FIELD_NAME` NONE = FuncWrapper(lambda s: s)