Skip to content

Commit

Permalink
Merge pull request #49 from macadmins/46-bug-createupdate-smart-compu…
Browse files Browse the repository at this point in the history
…ter-group-malformed-criteria-xml

Fix malformed XML when model contains enums
  • Loading branch information
burnsburns authored Jul 24, 2024
2 parents 24547f5 + e037317 commit 3378527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jamf_pro_sdk/models/classic/criteria.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ClassicCriterionSearchType(str, Enum):
class ClassicCriterion(BaseModel):
"""Classic API criterion. Used by Smart Groups and Advanced Searches."""

model_config = ConfigDict(extra="allow")
model_config = ConfigDict(extra="allow", use_enum_values=True)

name: str
priority: int
Expand Down

0 comments on commit 3378527

Please sign in to comment.