Skip to content

Commit 358c80a

Browse files
authored
fix: allow exclusions to lower camel case conversion (#86)
1 parent ec2193c commit 358c80a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

laceworksdk/api/base_endpoint.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ class BaseEndpoint:
55
A class used to implement base functionality for Lacework API Endpoints
66
"""
77

8+
KEY_CONVERSION_EXCLUDES = [
9+
"integration_mappings"
10+
]
11+
812
def __init__(self,
913
session,
1014
object_type,
@@ -87,6 +91,9 @@ def _convert_dictionary(self, dictionary, existing_keys):
8791
result = {}
8892

8993
for key, value in dictionary.items():
94+
if key in self.KEY_CONVERSION_EXCLUDES:
95+
continue
96+
9097
camel_key = self._convert_lower_camel_case(key)
9198

9299
if value is None:

0 commit comments

Comments
 (0)