Skip to content

Commit 3378527

Browse files
authored
Merge pull request #49 from macadmins/46-bug-createupdate-smart-computer-group-malformed-criteria-xml
Fix malformed XML when model contains enums
2 parents 24547f5 + e037317 commit 3378527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jamf_pro_sdk/models/classic/criteria.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ClassicCriterionSearchType(str, Enum):
4444
class ClassicCriterion(BaseModel):
4545
"""Classic API criterion. Used by Smart Groups and Advanced Searches."""
4646

47-
model_config = ConfigDict(extra="allow")
47+
model_config = ConfigDict(extra="allow", use_enum_values=True)
4848

4949
name: str
5050
priority: int

0 commit comments

Comments
 (0)